aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/global.mp
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/global.mp')
-rw-r--r--spec/inputs/global.mp77
1 files changed, 77 insertions, 0 deletions
diff --git a/spec/inputs/global.mp b/spec/inputs/global.mp
new file mode 100644
index 0000000..7d6cfde
--- /dev/null
+++ b/spec/inputs/global.mp
@@ -0,0 +1,77 @@
1
2do
3 global a,b,c = 223, 343
4 global cool = "dad"
5
6do
7 global class Something
8 umm: "cool"
9
10do
11 global a,b,c
12 a,b,c,d = "hello"
13
14
15do
16 What = if this
17 232
18 else
19 4343
20
21 global ^
22
23 another = 3434
24 Another = 7890
25
26 if inner then Yeah = "10000"
27
28 What = if this
29 232
30 else
31 4343
32
33
34do
35 global *
36
37 What = if this
38 232
39 else
40 4343
41
42 x,y,z = 1,2,3
43
44 y = ->
45 hallo = 3434
46
47 with tmp
48 j = 2000
49
50
51do
52 global *
53 x = 3434
54 if y then
55 x = 10
56
57do
58 global *
59 if y then
60 x = 10
61 x = 3434
62
63do
64 do
65 global *
66
67 k = 1212
68
69 do
70 h = 100
71
72 y = ->
73 h = 100
74 k = 100
75
76 h = 100
77