Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

super compiles wrong with double heritage (1.3.2) #2338

Closed
msdark opened this Issue · 2 comments

2 participants

@msdark

(sorry for my english)
The problem is:

I have tree class:
Parent, Middle and Child

where:
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???

Thanks!

@michaelficarra
Collaborator

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

@msdark

Fixed upgrading to 1.3.3

@msdark msdark closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.