diff options
Diffstat (limited to 'spec/inputs/destructure_defaults.yue')
| -rw-r--r-- | spec/inputs/destructure_defaults.yue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/inputs/destructure_defaults.yue b/spec/inputs/destructure_defaults.yue new file mode 100644 index 0000000..112d4a1 --- /dev/null +++ b/spec/inputs/destructure_defaults.yue | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | t = { | ||
| 2 | a: 1 | ||
| 3 | b: | ||
| 4 | c: 3 | ||
| 5 | d: nil | ||
| 6 | } | ||
| 7 | |||
| 8 | {:a, b: {:c, :d = 4}, :e = 5} = t | ||
| 9 | print a, c, d, e | ||
