summaryrefslogtreecommitdiff
path: root/spec/inputs/tables.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/tables.yue')
-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