Open apblack opened 9 years ago
Kim Bruce wrote by email:
Redeclaring a class parameter name inside the class causes a compiler crash. Here is the sample code and error message:
class test.with(x:Number) { def x: Number = 2 print(x) }
This produces:
Internal compiler error at line 513 of genjs: NoSuchMethod: no method 'dtype' in object an object. in "test2"
The code should be illegal.
This issue should be detected in identifierResolution; it should never get as far as code generation.
identifierResolution
Kim Bruce wrote by email:
Redeclaring a class parameter name inside the class causes a compiler crash. Here is the sample code and error message:
This produces:
The code should be illegal.