Skip to content

Commit

Permalink
Merge branch 'fix-14367' of https://github.com/dotty-staging/dotty in…
Browse files Browse the repository at this point in the history
…to fix-14367
  • Loading branch information
odersky committed Feb 1, 2022
2 parents a696dd2 + 66a5c68 commit 9a644e4
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 9a644e4

Please sign in to comment.