Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/typer/Typer.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored Feb 1, 2022
1 parent 8b8b7a0 commit 66a5c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
if pos < mtpe.paramInfos.length then
mtpe.paramInfos(pos)
// This works only if vararg annotations match up.
// See neg/i14367.scala for an example where the inferred type is mispredicated.
// See neg/i14367.scala for an example where the inferred type is mispredicted.
// Nevertheless, the alternative would be to give up completely, so this is
// defensible.
else NoType
Expand Down

0 comments on commit 66a5c68

Please sign in to comment.