diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-01-25 17:48:03 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-01-25 17:48:03 +0800 |
| commit | ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8 (patch) | |
| tree | 427e365939da39f31dbfa755675fb60bb141583d /spec/inputs/existential.moon | |
| parent | 4827d200604a086e2ad94edb4257c3abc7a3c4fc (diff) | |
| download | yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.gz yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.bz2 yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.zip | |
fix Moonscript issue 375.
Diffstat (limited to 'spec/inputs/existential.moon')
| -rw-r--r-- | spec/inputs/existential.moon | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/spec/inputs/existential.moon b/spec/inputs/existential.moon index f7d5ebd..2264768 100644 --- a/spec/inputs/existential.moon +++ b/spec/inputs/existential.moon | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 1 | ||
| 2 | f?! | 2 | f1?! |
| 3 | |||
| 4 | f2? "arg0",123 | ||
| 3 | 5 | ||
| 4 | x = tab?.value | 6 | x = tab?.value |
| 5 | 7 | ||
| @@ -19,3 +21,21 @@ if {:x} = a?.if?\then?(123)? @?\function 998 | |||
| 19 | 21 | ||
| 20 | res = b.function\do!\while?("OK")\if("def",998)\f? | 22 | res = b.function\do!\while?("OK")\if("def",998)\f? |
| 21 | print res | 23 | print res |
| 24 | |||
| 25 | solipsism = true if mind? and not world? | ||
| 26 | |||
| 27 | speed = 0 | ||
| 28 | speed or= 15 | ||
| 29 | |||
| 30 | footprints = yeti or "bear" | ||
| 31 | |||
| 32 | major = 'Computer Science' | ||
| 33 | |||
| 34 | unless major? | ||
| 35 | signUpForClass 'Introduction to Wines' | ||
| 36 | |||
| 37 | if window? | ||
| 38 | environment = 'browser (probably)' | ||
| 39 | |||
| 40 | zip = lottery.drawWinner?!.address?.zipcode | ||
| 41 | |||
