Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES 2017 #private class fields #5281

Closed
MegaJSDeveloper opened this issue Dec 30, 2019 · 1 comment
Closed

ES 2017 #private class fields #5281

MegaJSDeveloper opened this issue Dec 30, 2019 · 1 comment

Comments

@MegaJSDeveloper
Copy link

MegaJSDeveloper commented Dec 30, 2019

CoffeeScript:

class Cat
  
  constructor: ->
    @@name = 33
    return
    
  say: ->
    return @@name

Must compile to:

class Cat {
	#name
	
	constructor(){
		#name = 11
	}
	
	say(){
		return this.#name
	}

}
@GeoffreyBooth
Copy link
Collaborator

Duplicate of #4552.

Repository owner locked as resolved and limited conversation to collaborators Dec 30, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants