mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Implement rename me -> self (#2444)
Implements change proposed in #1382 Replaces #1624
This commit is contained in:
+4
-4
@@ -14,12 +14,12 @@ class Point {
|
||||
return {.x = 0, .y = 0};
|
||||
}
|
||||
|
||||
fn GetX[me: Point]() -> i32 {
|
||||
return me.x;
|
||||
fn GetX[self: Point]() -> i32 {
|
||||
return self.x;
|
||||
}
|
||||
|
||||
fn GetXY[me: Point]() -> (i32, i32) {
|
||||
return (me.GetX(), me.y);
|
||||
fn GetXY[self: Point]() -> (i32, i32) {
|
||||
return (self.GetX(), self.y);
|
||||
}
|
||||
|
||||
var x: i32;
|
||||
|
||||
Reference in New Issue
Block a user