| 1 | module main |
| 2 | |
| 3 | pub type Mat4 = [16]f32 |
| 4 | |
| 5 | interface IGameObject { |
| 6 | world_transform() Mat4 |
| 7 | } |
| 8 | |
| 9 | struct Foo implements IGameObject { |
| 10 | } |
| 11 | |
| 12 | fn (f Foo) world_transform() Mat4 { |
| 13 | return Mat4{} |
| 14 | } |
| 15 | |
| 16 | fn test_main() { |
| 17 | t := Foo{} |
| 18 | a := t.world_transform() |
| 19 | b := Mat4{} |
| 20 | assert a == b |
| 21 | } |
| 22 |