diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/tables.yue | 19 |
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 | ||
| 265 | const template = { | ||
| 266 | foo: "Hello" | ||
| 267 | bar: "World" | ||
| 268 | baz: "!" | ||
| 269 | } | ||
| 270 | |||
| 271 | const specialized = { | ||
| 272 | ...template | ||
| 273 | bar: "Bob" | ||
| 274 | } | ||
| 275 | |||
| 276 | specializedB = { | ||
| 277 | function: -> | ||
| 278 | ...template | ||
| 279 | end: -> | ||
| 280 | if: true | ||
| 281 | else: false | ||
| 282 | } | ||
| 283 | |||
| 265 | nil | 284 | nil |
| 266 | 285 | ||
