Implement rename me -> self (#2444)

Implements change proposed in #1382

Replaces #1624
This commit is contained in:
josh11b
2022-12-06 20:17:00 -08:00
committed by GitHub
parent d1210c4a50
commit 9c8fd6864e
287 changed files with 1727 additions and 1720 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ package ExplorerTest api;
interface Number {
fn Zero() -> Self;
fn Add[me: Self](other: Self) -> Self;
fn Add[self: Self](other: Self) -> Self;
}
class Point(T:! Number) {
@@ -30,7 +30,7 @@ class Point(T:! Number) {
external impl i32 as Number {
fn Zero() -> i32 { return 0; }
fn Add[me: i32](other: i32) -> i32 { return me + other; }
fn Add[self: i32](other: i32) -> i32 { return self + other; }
}
fn Main() -> i32 {