Simplify variables

This commit is contained in:
nub31
2025-09-08 20:46:50 +02:00
parent 671dc55449
commit bb8cbf71f9
2 changed files with 23 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ extern func puts(text: cstring)
interface Printable
{
func print()
func test()
}
struct Human : Printable
@@ -15,6 +16,11 @@ struct Human : Printable
{
puts(this.name)
}
func test()
{
puts("test")
}
}
func main(args: []cstring): i64
@@ -25,6 +31,7 @@ func main(args: []cstring): i64
}
x.print()
x.test()
return 0
}