mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
revised tests for #1234 thanks to @michaelficarra
This commit is contained in:
parent
c9fd0659c2
commit
197d07cc85
1 changed files with 5 additions and 7 deletions
|
@ -234,11 +234,9 @@ test "#891: incorrect inversion of chained comparisons", ->
|
||||||
|
|
||||||
test "#1234: Applying a splat to :: applies the splat to the wrong object", ->
|
test "#1234: Applying a splat to :: applies the splat to the wrong object", ->
|
||||||
nonce = {}
|
nonce = {}
|
||||||
class A
|
class C
|
||||||
b: (arr) ->
|
method: -> @nonce
|
||||||
eq this.toString(), nonce
|
nonce: nonce
|
||||||
toString: -> nonce
|
|
||||||
|
|
||||||
c = [0]
|
arr = []
|
||||||
|
eq nonce, C::method arr... # should be applied to `C::`
|
||||||
A::b c...
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue