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:
@@ -7,11 +7,11 @@
|
||||
package Carbon api;
|
||||
|
||||
interface HasValueParam(T:! Type, V:! T) {
|
||||
fn Go[me: Self]() -> T;
|
||||
fn Go[self: Self]() -> T;
|
||||
}
|
||||
|
||||
impl () as HasValueParam(i32, 5) {
|
||||
fn Go[me: Self]() -> i32 { return 42; }
|
||||
fn Go[self: Self]() -> i32 { return 42; }
|
||||
}
|
||||
|
||||
class Point {
|
||||
|
||||
Reference in New Issue
Block a user