Skip to content

Commit a1f475d

Browse files
committed
Use ArrayClass as the symbol of JavaArrayType
Previously we returned NoSymbol which does not match what the backend now expects.
1 parent aa1e850 commit a1f475d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ object Types {
421421
case tp: ClassInfo => tp.cls
422422
case tp: SingletonType => NoSymbol
423423
case tp: TypeProxy => tp.underlying.typeSymbol
424+
case _: JavaArrayType => defn.ArrayClass
424425
case _ => NoSymbol
425426
}
426427

@@ -448,6 +449,8 @@ object Types {
448449
else NoSymbol
449450
case tp: OrType =>
450451
tp.join.classSymbol
452+
case _: JavaArrayType =>
453+
defn.ArrayClass
451454
case _ =>
452455
NoSymbol
453456
}

0 commit comments

Comments
 (0)