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 2c4b58c commit 4312f86Copy full SHA for 4312f86
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -1401,11 +1401,9 @@ trait Applications extends Compatibility {
1401
// TODO: Maybe the 'reorder' method above can be reused, or be template
1402
if (bunchedArgs != Nil && remainingArgTypes != Nil) {
1403
1404
- val resTypeOfUnapplyFn = unapplyFn.tpe.widen.asInstanceOf[MethodType].resType
1405
-
1406
val names: SingleDenotation =
1407
- resTypeOfUnapplyFn.member(nme.get).info
1408
- .orElse(resTypeOfUnapplyFn)
+ mt.resType.member(nme.get).info
+ .orElse(mt.resType)
1409
.member(tpnme.Names)
1410
.accessibleFrom(selType)
1411
// TODO: Is it possible to get something else than a SingleDenotation?
0 commit comments