diff options
Diffstat (limited to 'spec/inputs/stub.moon')
-rw-r--r-- | spec/inputs/stub.moon | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/inputs/stub.moon b/spec/inputs/stub.moon new file mode 100644 index 0000000..f8f6c3f --- /dev/null +++ b/spec/inputs/stub.moon | |||
@@ -0,0 +1,16 @@ | |||
1 | |||
2 | |||
3 | x = { | ||
4 | val: 100 | ||
5 | hello: => | ||
6 | print @val | ||
7 | } | ||
8 | |||
9 | fn = x\val | ||
10 | print fn! | ||
11 | print x\val! | ||
12 | |||
13 | |||
14 | -- ... should be bubbled up anon functions | ||
15 | x = hello(...)\world | ||
16 | |||