This commit is contained in:
nub31
2025-08-12 20:01:43 +02:00
parent ad33cd7318
commit 1ef1df545f
10 changed files with 204 additions and 37 deletions

View File

@@ -1,5 +1,27 @@
interface Printable
{
func print()
}
struct Human : Printable {
name: cstring
func print_name()
{
puts(this^.name)
}
func print()
{
puts("example")
}
}
func main(args: []cstring): i64
{
puts("test")
let human: Human = alloc Human {
name = "oliver"
}
human.print()
return 0
}