Closed
Description
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