Skip to content

Commit c812c5d

Browse files
committed
Add comment
1 parent aef96f6 commit c812c5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,8 @@ trait Applications extends Compatibility {
18971897
}
18981898

18991899
/** The type of alternative `alt` after instantiating its first parameter
1900-
* clause with `argTypes`.
1900+
* clause with `argTypes`. In addition, if the resulting type is a PolyType
1901+
* and `typeArgs` matches its parameter list, instantiate the result with `typeArgs`.
19011902
*/
19021903
def skipParamClause(argTypes: List[Type], typeArgs: List[Type])(alt: TermRef): Type =
19031904
def skip(tp: Type): Type = tp match {

0 commit comments

Comments
 (0)