Simplify variables
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user