diff options
Diffstat (limited to 'spec/inputs/destructure.yue')
| -rw-r--r-- | spec/inputs/destructure.yue | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/inputs/destructure.yue b/spec/inputs/destructure.yue index b6250d0..179056c 100644 --- a/spec/inputs/destructure.yue +++ b/spec/inputs/destructure.yue | |||
| @@ -278,5 +278,15 @@ do | |||
| 278 | do | 278 | do |
| 279 | {a, :abc, b, :def, ...sub, d, e} = tb | 279 | {a, :abc, b, :def, ...sub, d, e} = tb |
| 280 | 280 | ||
| 281 | do | ||
| 282 | for {:a, :b} in *items | ||
| 283 | print a, b | ||
| 284 | |||
| 285 | for :a, :b in *items | ||
| 286 | print a, b | ||
| 287 | |||
| 288 | for :body in pairs data | ||
| 289 | print body if body | ||
| 290 | |||
| 281 | nil | 291 | nil |
| 282 | 292 | ||
