fix: 修正 getName 方法调用

This commit is contained in:
Luke 2025-08-31 15:34:41 +08:00
parent b4a0bccb66
commit 419057c3c2

View File

@ -43,7 +43,7 @@ module: Main
// 初始化 Person 和 Address 的实例 // 初始化 Person 和 Address 的实例
declare p: Person = new Person(123, new Address(1, 2)) declare p: Person = new Person(123, new Address(1, 2))
os.print(p.getName) // 打印 name os.print(p.getName()) // 打印 name
end body end body
end function end function