Skip to content

Compiler crash: is not a simple name while compiling #6626

Closed
@biboudis

Description

@biboudis
class Test[T1] {
  class A[T2]

  object B  {
     def m(): A[B.type] = ???
  }
}
java.lang.UnsupportedOperationException: B[ModuleClass] is not a simple name while compiling tests/pos/ranks.scala
Exception in thread "main" java.lang.UnsupportedOperationException: B[ModuleClass] is not a simple name
        at dotty.tools.dotc.core.Names$DerivedName.asSimpleName(Names.scala:474)
        at dotty.tools.dotc.core.Names$DerivedName.asSimpleName(Names.scala:474)
        at dotty.tools.dotc.core.Names$TypeName.asSimpleName(Names.scala:441)
        at dotty.tools.dotc.transform.GenericSignatures$.classSig$2(GenericSignatures.scala:167)
        at dotty.tools.dotc.transform.GenericSignatures$.jsig$1(GenericSignatures.scala:228)
        at dotty.tools.dotc.transform.GenericSignatures$.boxedSig$1(GenericSignatures.scala:64)
        at dotty.tools.dotc.transform.GenericSignatures$.argSig$1(GenericSignatures.scala:145)
        at dotty.tools.dotc.transform.GenericSignatures$.classSig$1$$anonfun$1(GenericSignatures.scala:174)

scalac passes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions