@@ -2588,7 +2588,7 @@ trait Types
25882588 * based on the bounds of the type parameters of the quantified type
25892589 * In Scala syntax, given a java-defined class C[T <: String], the existential type C[_]
25902590 * is improved to C[_ <: String] before skolemization, which captures (get it?) what Java does:
2591- * enter the type paramers ' bounds into the context when checking subtyping/type equality of existential types
2591+ * enter the type parameters ' bounds into the context when checking subtyping/type equality of existential types
25922592 *
25932593 * Also tried doing this once during class file parsing or when creating the existential type,
25942594 * but that causes cyclic errors because it happens too early.
@@ -4263,7 +4263,7 @@ trait Types
42634263 matchesType(res1, res2.substSym(tparams2, tparams1), alwaysMatchSimple)
42644264 (tp1, tp2) match {
42654265 case (MethodType(params1, res1), MethodType(params2, res2)) =>
4266- params1.length == params2.length && // useful pre-secreening optimization
4266+ params1.length == params2.length && // useful pre-screening optimization
42674267 matchingParams(params1, params2, tp1.isInstanceOf[JavaMethodType], tp2.isInstanceOf[JavaMethodType]) &&
42684268 matchesType(res1, res2, alwaysMatchSimple) &&
42694269 tp1.isImplicit == tp2.isImplicit
0 commit comments