super compiles wrong with double heritage (1.3.2) #2338

msdark opened this Issue May 16, 2012 · 2 comments


None yet
2 participants

msdark commented May 16, 2012

(sorry for my english)
The problem is:

I have tree class:
Parent, Middle and Child

Middle extends Parent

Child extends Middle

Middle define a method: someMethod() and Child calls this method
Child call in the initialize/constructor method to the super

All works fine until i upgrade coffee to 1.3.2

Before the upgrade the clases compile to JS good and Child call the super with this:
return Child.super.initialize.apply(this, arguments);

Buf now, Child compile with this
return Child.super.initialize.apply(Child, arguments);

and this fails to find the method defined in the constructor (Middle)

So i manually change that line to the working version, but this isn't the best option..

Any idea how to fix that???



michaelficarra commented May 16, 2012

I believe this is a duplicate of #2331. Try upgrading to 1.3.3 and see if the problem persists.

msdark commented May 16, 2012

Fixed upgrading to 1.3.3

msdark closed this May 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment