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:
@@ -13,7 +13,7 @@ class A {
|
||||
var n: i32;
|
||||
}
|
||||
impl i32 as ImplicitAs(A) {
|
||||
fn Convert[me: Self]() -> A { return {.n = me}; }
|
||||
fn Convert[self: Self]() -> A { return {.n = self}; }
|
||||
}
|
||||
|
||||
var a: A = 5;
|
||||
|
||||
Reference in New Issue
Block a user