summaryrefslogtreecommitdiff
path: root/test/files/run/t6387.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6387 Clones accessor before name expansionEugene Vigdorchik2013-03-251-0/+16
When a symbol's name is expanded due to a conflict during composition (e.g. multiple traits with same-named members, but which are not both visible at the language level in the concrete class) the compiler renames some symbols with expanded names which embed the full name of the declaring class to avoid clashes. In the rare cases when the accessor overrides the member in base class, such expansion either results in AbstractMethodError when the base method is abstract, or, even worse, can change the semantics of the program. To avoid such issues, we clone the accessor symbol, clear its ACCESSOR flag and enter the symbol with an unchanged name.