@@ -1387,11 +1387,11 @@ trait Applications extends Compatibility {
1387
1387
// TODO: Maybe the 'reorder' method above can be reused, or be template
1388
1388
if (bunchedArgs != Nil && argTypes != Nil ) {
1389
1389
1390
- val typeInfoOfGetMethod =
1391
- if unapplyFn.tpe.widen. asInstanceOf [ MethodType ].resType.member(nme.get).exists then
1392
- unapplyFn.tpe.widen. asInstanceOf [ MethodType ].resType.member(nme.get).info
1393
- else
1394
- unapplyFn.tpe.widen. asInstanceOf [ MethodType ].resType
1390
+ val resTypeOfUnapplyFn = unapplyFn.tpe.widen. asInstanceOf [ MethodType ].resType
1391
+
1392
+ val typeInfoOfGetMethod : Type =
1393
+ resTypeOfUnapplyFn.member(nme.get).info
1394
+ .orElse(resTypeOfUnapplyFn)
1395
1395
1396
1396
val names = typeInfoOfGetMethod
1397
1397
.memberDenots(typeNameFilter, (name, buf) => if (name.toString == " Names" ) buf += typeInfoOfGetMethod.member(name).asSingleDenotation)
@@ -2261,7 +2261,7 @@ trait Applications extends Compatibility {
2261
2261
* This reset is needed because otherwise the original results might
2262
2262
* have added constraints to type parameters which are no longer
2263
2263
* implied after harmonization. No essential constraints are lost by this because
2264
- * the result of harmomization will be compared again with the expected type.
2264
+ * the result of harmonization will be compared again with the expected type.
2265
2265
* Test cases where this matters are in pos/harmomize.scala.
2266
2266
*/
2267
2267
def harmonic [T ](harmonize : List [T ] => List [T ], pt : Type )(op : => List [T ])(using Context ): List [T ] =
@@ -2320,7 +2320,7 @@ trait Applications extends Compatibility {
2320
2320
* with the type parameters of the extension (T1, T2) inferred.
2321
2321
* None is returned if the implicit search fails for any of the leading implicit parameters
2322
2322
* or if the receiver has a wrong type (note that in general the type of the receiver
2323
- * might depend on the exact types of the found instances of the proceding implicits).
2323
+ * might depend on the exact types of the found instances of the proceeding implicits).
2324
2324
* No implicit search is tried for implicits following the receiver or for parameters of the def (D, E).
2325
2325
*/
2326
2326
def tryApplyingExtensionMethod (methodRef : TermRef , receiver : Tree )(using Context ): Option [Tree ] =
0 commit comments