From 3f91bb6f0fb9805ff846327a0d6cf3aa9dd1501e Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 30 Sep 2019 22:52:51 -0400 Subject: fixed fn() bug --- #test.toc# | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 #test.toc# (limited to '#test.toc#') diff --git a/#test.toc# b/#test.toc# new file mode 100644 index 0000000..112e4e3 --- /dev/null +++ b/#test.toc# @@ -0,0 +1,17 @@ +main @= fn() { + arr1 : ['a' as u8]int; + arr2 : [main as u64]int; +1 arr3 : [main as i64]int; + N @= (-10 + (97 as char as f32)) as u32; + arr4 : [N]int; + arr5 : [main as u64]int; + // arr6 : [main as u64 as fn() as u64]int;FIXME + arr7 : [main as u64 as fn() int as u64]int; + + str @= "foo"; + arr8 : [(str[0] as u32) + (str[1] as u32) + (str[2] as u32)]int; + asdf @= new int; + arr9 : [asdf as u64]int; + arr10 : [main as &i32 as u64]int; + arr11 : [((main as &u64) as [4]u64)[3]]int; +}; -- cgit v1.2.3