aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-04-24 15:35:53 +0800
committerLi Jin <dragon-fly@qq.com>2022-04-24 15:35:53 +0800
commit249e1de1d32dda2b60b9116c5a4e538475de0192 (patch)
treed62b95ba79cd8b226fe2f8ae172bf646c12bff91 /spec/inputs
parentfe6d146bc4454d8096ddd0543d7142db3da5da5b (diff)
downloadyuescript-249e1de1d32dda2b60b9116c5a4e538475de0192.tar.gz
yuescript-249e1de1d32dda2b60b9116c5a4e538475de0192.tar.bz2
yuescript-249e1de1d32dda2b60b9116c5a4e538475de0192.zip
add support for the Fill Operator. fix issue #39.
Diffstat (limited to 'spec/inputs')
-rw-r--r--spec/inputs/tables.yue19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/inputs/tables.yue b/spec/inputs/tables.yue
index 649c1dc..3a245a7 100644
--- a/spec/inputs/tables.yue
+++ b/spec/inputs/tables.yue
@@ -262,5 +262,24 @@ tbMixB = {
262 1, 2, 3 262 1, 2, 3
263} 263}
264 264
265const template = {
266 foo: "Hello"
267 bar: "World"
268 baz: "!"
269}
270
271const specialized = {
272 ...template
273 bar: "Bob"
274}
275
276specializedB = {
277 function: ->
278 ...template
279 end: ->
280 if: true
281 else: false
282}
283
265nil 284nil
266 285