diff options
author | Li Jin <dragon-fly@qq.com> | 2022-04-25 13:19:26 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-04-25 13:19:45 +0800 |
commit | 10afeaf30bfe03774c12908235520eebf0c192ee (patch) | |
tree | ca266b04aaea63ea0710a51708d6ef806008b34e /spec/inputs/return.yue | |
parent | 249e1de1d32dda2b60b9116c5a4e538475de0192 (diff) | |
download | yuescript-10afeaf30bfe03774c12908235520eebf0c192ee.tar.gz yuescript-10afeaf30bfe03774c12908235520eebf0c192ee.tar.bz2 yuescript-10afeaf30bfe03774c12908235520eebf0c192ee.zip |
add spread syntax support for table block. fix a gcc compiler issue. update doc.
Diffstat (limited to 'spec/inputs/return.yue')
-rw-r--r-- | spec/inputs/return.yue | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/inputs/return.yue b/spec/inputs/return.yue index f170ffd..96fa0cd 100644 --- a/spec/inputs/return.yue +++ b/spec/inputs/return.yue | |||
@@ -49,6 +49,19 @@ do | |||
49 | else | 49 | else |
50 | b | 50 | b |
51 | 51 | ||
52 | do | ||
53 | return | ||
54 | :value | ||
55 | itemA: 123 | ||
56 | itemB: "abc" | ||
57 | |||
58 | do | ||
59 | return | ||
60 | * 1 | ||
61 | * 2 | ||
62 | * ...three | ||
63 | * 4 | ||
64 | |||
52 | _ = -> a\b | 65 | _ = -> a\b |
53 | do a\b | 66 | do a\b |
54 | 67 | ||