...
This commit is contained in:
@@ -16,18 +16,18 @@ struct Human : Printable, Stringable
|
||||
|
||||
func str(): cstring
|
||||
{
|
||||
return this^.name
|
||||
return this.name
|
||||
}
|
||||
|
||||
func print()
|
||||
{
|
||||
puts(this^.str())
|
||||
puts(this.str())
|
||||
}
|
||||
}
|
||||
|
||||
func main(args: []cstring): i64
|
||||
{
|
||||
let human: Stringable = alloc Human {
|
||||
let human = alloc Human {
|
||||
name = "oliver"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user