diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-03 23:50:00 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-03 23:50:00 -0700 |
commit | 549069762ccc35352186eb4fe1922883a0c4f213 (patch) | |
tree | fd119dfc43bbd98b14ffb0c7df76547701e66770 /test.stage | |
parent | 4d0ae6422674a2a752c5c6b60ca5ffe908a2278f (diff) | |
download | stage-549069762ccc35352186eb4fe1922883a0c4f213.tar.gz stage-549069762ccc35352186eb4fe1922883a0c4f213.tar.bz2 stage-549069762ccc35352186eb4fe1922883a0c4f213.tar.xz stage-549069762ccc35352186eb4fe1922883a0c4f213.zip |
Return seems to be fixed.
Diffstat (limited to 'test.stage')
-rw-r--r-- | test.stage | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -13,13 +13,32 @@ global | |||
13 | } | 13 | } |
14 | } | 14 | } |
15 | 15 | ||
16 | function subfunction() | ||
17 | { | ||
18 | if true then | ||
19 | { | ||
20 | return(); | ||
21 | } | ||
22 | display("subfunction()"); | ||
23 | } | ||
24 | |||
25 | function hello() | ||
26 | { | ||
27 | if true == true then | ||
28 | { | ||
29 | subfunction(); | ||
30 | display("Yeah!"); | ||
31 | return(); | ||
32 | } | ||
33 | display("hello()"); | ||
34 | } | ||
35 | |||
16 | situation <<start>> | 36 | situation <<start>> |
17 | { | 37 | { |
18 | setup | 38 | setup |
19 | { | 39 | { |
20 | global.stuff = {'count': 1}; | 40 | hello(); |
21 | global.stuff['count'] += 5; | 41 | display("situation"); |
22 | display( global.stuff['count'] ); | ||
23 | exit(); | 42 | exit(); |
24 | } | 43 | } |
25 | 44 | ||