diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,10 +1,8 @@ main @= fn() { - foo @= fn() i64 { return 3; }; - test @= fn(x : i64, y : i32, z,w : f32 = 18, foo := false) ret1 : i64, ret2 : i64 { - ret1 = x + (z + w as i64); - }; - a,b : i64; - a, b = test(3,7,2, foo = true); - a, b = test(x = 3, y = 30); + foo := 'a'; + bar := foo as u8 as f32; + x := "hello"; + x[4] = 's'; + x[3] = foo; }; |