Rework dot func call

This commit is contained in:
nub31
2025-08-18 13:21:33 +02:00
parent 3430b64dda
commit 130a2f9d78
6 changed files with 138 additions and 115 deletions

View File

@@ -3,6 +3,7 @@ extern func puts(text: cstring)
interface Test
{
func print()
func test()
}
struct Human : Test
@@ -13,6 +14,11 @@ struct Human : Test
{
puts(this.name)
}
func test()
{
puts("test")
}
}
func main(args: []cstring): i64
@@ -22,6 +28,7 @@ func main(args: []cstring): i64
}
human.print()
human.test()
return 0
}