Skip to content

Commit df0e140

Browse files
committed
Fixed foc of isUnboudnedGenericArray
1 parent 650ef40 commit df0e140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dotty/tools/dotc/core/TypeErasure.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ object TypeErasure {
170170
}
171171
}
172172

173-
/** Is `tp` an abstract type or polymorphic type parameter that has `Any`
174-
* as upper bound and that is not Java defined? Arrays of such types are
175-
* erased to `Object` instead of `ObjectArray`.
173+
/** Is `tp` an abstract type or polymorphic type parameter that has `Any`, `AnyVal`,
174+
* or a universal trait as upper bound and that is not Java defined? Arrays of such types are
175+
* erased to `Object` instead of `Object[]`.
176176
*/
177177
def isUnboundedGeneric(tp: Type)(implicit ctx: Context): Boolean = tp.dealias match {
178178
case tp: TypeRef =>

0 commit comments

Comments
 (0)