We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7044a61 commit 418a84cCopy full SHA for 418a84c
compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -1018,6 +1018,7 @@ class Definitions {
1018
else ArrayType.appliedTo(elem :: Nil)
1019
def unapply(tp: Type)(using Context): Option[Type] = tp.dealias match {
1020
case AppliedType(at, arg :: Nil) if at.isRef(ArrayType.symbol) => Some(arg)
1021
+ case JavaArrayType(tp) if ctx.erasedTypes => Some(tp)
1022
case _ => None
1023
}
1024
0 commit comments