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 650ef40 commit df0e140Copy full SHA for df0e140
src/dotty/tools/dotc/core/TypeErasure.scala
@@ -170,9 +170,9 @@ object TypeErasure {
170
}
171
172
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`.
+ /** Is `tp` an abstract type or polymorphic type parameter that has `Any`, `AnyVal`,
+ * or a universal trait as upper bound and that is not Java defined? Arrays of such types are
+ * erased to `Object` instead of `Object[]`.
176
*/
177
def isUnboundedGeneric(tp: Type)(implicit ctx: Context): Boolean = tp.dealias match {
178
case tp: TypeRef =>
0 commit comments