cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 160 forks source link

allow private constructors #38

Closed lgrignon closed 8 years ago

lgrignon commented 8 years ago

private constructors raise an error with JSweet, I think it would be better to permit it and delete it at transpilation time, so we could enjoy the private constructor feature at least in our IDE.

renaudpawlak commented 8 years ago

Private constructors show now be ok. But at this point, be aware that constructor overloading is not allowed (i'll create a new issue for this).

lgrignon commented 8 years ago

yes, of course. Thanks.