@@ -1458,7 +1458,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
14581458 * possibly also type argument `targs` that need to be applied to each alternative
14591459 * to form the method type.
14601460 * Two trials: First, without implicits or SAM conversions enabled. Then,
1461- * if the fist finds no eligible candidates, with implicits and SAM conversions enabled.
1461+ * if the first finds no eligible candidates, with implicits and SAM conversions enabled.
14621462 */
14631463 def resolveOverloaded (alts : List [TermRef ], pt : Type )(implicit ctx : Context ): List [TermRef ] = track(" resolveOverloaded" ) {
14641464
@@ -1517,15 +1517,15 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
15171517
15181518 /** Try an apply method, if
15191519 * - the result is applied to value arguments and alternative is not a method, or
1520- * - the result is applied to type arguments and alternatuve is not polymorphic
1520+ * - the result is applied to type arguments and alternative is not polymorphic
15211521 */
15221522 val tryApply : Type => Boolean = alt => pt match {
15231523 case pt : FunProto => ! alt.widen.stripPoly.isInstanceOf [MethodType ]
15241524 case pt : PolyProto => ! alt.widen.isInstanceOf [PolyType ]
15251525 case _ => false
15261526 }
15271527
1528- /** Replace each alternative by its apply members where necesssary */
1528+ /** Replace each alternative by its apply members where necessary */
15291529 def applyMembers (alt : TermRef ): List [TermRef ] =
15301530 if (tryApply(alt)) alt.member(nme.apply).alternatives.map(TermRef (alt, nme.apply, _))
15311531 else alt :: Nil
0 commit comments