diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-12-17 17:33:38 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-12-17 17:33:38 +0800 |
| commit | 05ef9bb1ffefbc717f3fb4738f3683b3cb09a82e (patch) | |
| tree | 163878ad9edab0408ad5fc46b1b9f02b473eb0ac /spec/inputs | |
| parent | 2138d176edfe1f8ba3ecee211f15825e97f0570a (diff) | |
| download | yuescript-0.9.5.tar.gz yuescript-0.9.5.tar.bz2 yuescript-0.9.5.zip | |
eliminate some ambiguous syntax.v0.9.5
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/cond.yue | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/inputs/cond.yue b/spec/inputs/cond.yue index 3dee99b..d33eec4 100644 --- a/spec/inputs/cond.yue +++ b/spec/inputs/cond.yue | |||
| @@ -182,7 +182,23 @@ m = if 1 | |||
| 182 | 182 | ||
| 183 | else 6 | 183 | else 6 |
| 184 | 184 | ||
| 185 | do | ||
| 186 | a | ||
| 187 | :b | ||
| 188 | return if a | ||
| 189 | :b | ||
| 190 | else if c | ||
| 191 | d: e | ||
| 192 | else | ||
| 193 | f: 123 | ||
| 185 | 194 | ||
| 195 | do | ||
| 196 | c | ||
| 197 | d: e | ||
| 198 | if a | ||
| 199 | :b = tb | ||
| 200 | elseif c | ||
| 201 | d: e = tb | ||
| 186 | 202 | ||
| 187 | nil | 203 | nil |
| 188 | 204 | ||
