File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -413,13 +413,13 @@ class TypeApplications(val self: Type) extends AnyVal {
413
413
def translateToRepeated (from : ClassSymbol )(using Context ): Type =
414
414
translateParameterized(from, defn.RepeatedParamClass )
415
415
416
- /** Translate `T` by `T & Object` in the situations where an `Array[T]`
416
+ /** Translate `T` to `T & Object` in the situations where an `Array[T]`
417
417
* coming from Java would need to be interpreted as an `Array[T & Object]`
418
418
* to be erased correctly.
419
419
*
420
420
* This is necessary because a fully generic Java array erases to an array of Object,
421
- * whereas a fully generic Java array erases to Object to allow primitive arrays
422
- * as subtypeS .
421
+ * whereas a fully generic Scala array erases to Object to allow primitive arrays
422
+ * as subtypes .
423
423
*
424
424
* Note: According to
425
425
* <http://cr.openjdk.java.net/~briangoetz/valhalla/sov/02-object-model.html>,
You can’t perform that action at this time.
0 commit comments