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
@@ -9,7 +9,7 @@
package ExplorerTest api;
interface Vector {
fn Add[me: Self](b: Self) -> Self;
fn Add[self: Self](b: Self) -> Self;
}
fn ScaleGeneric[T:! Vector](a: T, s: i32) -> T {
@@ -21,8 +21,8 @@ class Point {
var x: i32;
var y: i32;
impl Point as Vector {
fn Add[me: Point](b: Point) -> Point {
return {.x = me.x + b.x, .y = me.y + b.y};
fn Add[self: Point](b: Point) -> Point {
return {.x = self.x + b.x, .y = self.y + b.y};
}
}
}