From ed70b9d4d08c87e642120e51ac45c17c1e9b9b56 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Sun, 5 Dec 2010 13:08:14 -0500 Subject: [PATCH] test for bug introduced in 63cbb643 discussion: https://github.com/jashkenas/coffee-script/commit/63cbb64341425c6bbb8a2594aedcc2c41e859778#commitcomment-209643 --- test/test_splats.coffee | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_splats.coffee b/test/test_splats.coffee index 49fc2929..c8eed486 100644 --- a/test/test_splats.coffee +++ b/test/test_splats.coffee @@ -123,3 +123,13 @@ try failed = false catch err ok failed + + +# multiple generated references +(-> + a = {b: []} + a.b[true] = -> this == a.b + c = 0 + d = [] + ok a.b[0<++c<2] d... +)()