aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/assign.mp
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/assign.mp')
-rw-r--r--spec/inputs/assign.mp33
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/inputs/assign.mp b/spec/inputs/assign.mp
new file mode 100644
index 0000000..dac2ba3
--- /dev/null
+++ b/spec/inputs/assign.mp
@@ -0,0 +1,33 @@
1
2_ = ->
3 joop = 2302
4
5 (hi) ->
6 d = 100
7 hi = 1021
8
9 a,b,c,d = 1,2,3,4
10
11 hello[232], (5+5)[121], hello, x[99] = 100, 200, 300
12
13 joop = 12
14
15joop = 2345
16
17a, b = if hello
18 "hello"
19else
20 "nothing", "yeah"
21
22
23a, b = if hello
24 if yeah then "one", "two" else "mmhh"
25else
26 print "the other"
27 "nothing", "yeah"
28
29c, d = 1, 2 if true
30
31x = (do
32 f!
33 123) if f = getHandler!