Skip to content

Commit

Permalink
Fix dependent variable approximation for by-name parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed May 21, 2021
1 parent 22d9782 commit 55a223c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Inferencing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ trait Inferencing { this: Typer =>

val arg = findArg(call)
if !arg.isEmpty then
var argType = arg.tpe
var argType = arg.tpe.widenExpr.widenTermRefExpr
if !argType.isSingleton then argType = SkolemType(argType)
argType <:< tvar
case _ =>
Expand Down

0 comments on commit 55a223c

Please sign in to comment.