code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(13 lines)
1 struct Foo(x:Int)
2 func update(f:&Foo)
3 f.x += 1
5 struct Baz(foo:Foo)
6 func update(b:&Baz)
7 # Make sure & propagates here!
8 b.foo.update()
10 func main()
11 b := Baz(Foo(123))
12 b.update()
13 assert b.foo.x == 124