diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/macro.yue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/inputs/macro.yue b/spec/inputs/macro.yue index 5dafd84..5d5f1a9 100644 --- a/spec/inputs/macro.yue +++ b/spec/inputs/macro.yue | |||
| @@ -340,6 +340,15 @@ _1 = -> | |||
| 340 | print 2 | 340 | print 2 |
| 341 | print 3 | 341 | print 3 |
| 342 | 342 | ||
| 343 | do | ||
| 344 | macro foo = -> code: "tb:func(123)", type: "lua" | ||
| 345 | f = -> | ||
| 346 | x = $foo\bar 456 | ||
| 347 | $foo! | ||
| 348 | f1 = -> | ||
| 349 | $foo! | ||
| 350 | return | ||
| 351 | |||
| 343 | macro implicitReturnMacroIsAllowed = -> "print 'abc'\n123" | 352 | macro implicitReturnMacroIsAllowed = -> "print 'abc'\n123" |
| 344 | 353 | ||
| 345 | $implicitReturnMacroIsAllowed | 354 | $implicitReturnMacroIsAllowed |
