We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239ec17 commit 6fa2a3eCopy full SHA for 6fa2a3e
compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
@@ -439,7 +439,11 @@ trait TypeAssigner {
439
tree.withType(err)
440
case ref: TermRef if ref.isOverloaded =>
441
val disambiguated = ref.denot.suchThat(_.info.isInstanceOf[PolyType])
442
- if (disambiguated.exists) assignType(tree, fn.withType(ref.withDenot(disambiguated)), args)
+ if (disambiguated.exists) {
443
+ val fn1 = fn.withType(ref.withDenot(disambiguated))
444
+ val tree1 = untpd.cpy.TypeApply(tree)(fn1, args)
445
+ assignType(tree1, fn1, args)
446
+ }
447
else fail
448
case _ =>
449
//println(i"bad type: $fn: ${fn.symbol} / ${fn.symbol.isType} / ${fn.symbol.info}") // DEBUG
0 commit comments