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 e6aff5b commit 9341513Copy full SHA for 9341513
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -1388,11 +1388,9 @@ trait Applications extends Compatibility {
1388
// TODO: Maybe the 'reorder' method above can be reused, or be template
1389
if (bunchedArgs != Nil && remainingArgTypes != Nil) {
1390
1391
- val resTypeOfUnapplyFn = unapplyFn.tpe.widen.asInstanceOf[MethodType].resType
1392
-
1393
val names: SingleDenotation =
1394
- resTypeOfUnapplyFn.member(nme.get).info
1395
- .orElse(resTypeOfUnapplyFn)
+ mt.resType.member(nme.get).info
+ .orElse(mt.resType)
1396
.member(tpnme.Names)
1397
.accessibleFrom(selType)
1398
// TODO: Is it possible to get something else than a SingleDenotation?
0 commit comments