[#111] | project: compiler | priority: medium | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Erik | Philippe | fixed | 2003-09-09 11:57:08.0 | |
subject | Illegal use of type selector crashes compiler | |||
code |
class H[A] { def mk():H#H[A] = { new H{}; } } |
|||
what happened | Compiler chrash: H.scala:2: class H takes type parameters. def mk():H#H[A] = { ^ Exception in thread "main" java.lang.AssertionError: field selector of class SelectFromType is not of kind Type,\ found: scalac.util.Name( |
|||
what expected | An error message telling me that the first H in H#H[A] is not a type or something simmilar... not a crash. | |||
[back to overview] |
Martin edited on 2003-09-09 13:41:48.0 |
The problem is in the TreeCopier routine
SelectFromType(tree, sym, qual)If `sym' is Symbol.ERROR, the name of the created tree should be , but it is the term name . |
Philippe edited on 2003-09-09 16:48:15.0 |
Changed class Name so that ERROR responds true to both isTermName() and isTypeName(). |