Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

super.foo() should be allowed in class properties #498

Closed
loganfsmyth opened this issue Apr 28, 2017 · 0 comments · Fixed by #499
Closed

super.foo() should be allowed in class properties #498

loganfsmyth opened this issue Apr 28, 2017 · 0 comments · Fixed by #499
Labels

Comments

@loganfsmyth
Copy link
Member

Pulled from babel/babel#5104 but going to leave that open so we make sure the transformation also works once we fix the parsing for it.

Input Code

class Fails extends class { c(){} } {
  c = super.c();
}

Expected Behavior

Should parse successfully.

Current Behavior

Throws the syntax error 'super' outside of function or class (2:5)

Your Environment

software version
Babylon
node
npm
Operating System
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants