feat: impl 关键字改为 extend

This commit is contained in:
2026-06-05 19:50:40 +08:00
parent 175f8a6658
commit 6fc599e6c2
8 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
struct Point { x: i64, y: i64 }
impl Point {
extend Point {
fn get_x(self: Point) -> i64 {
return self.x;
}