Skip to content

Commit 9341513

Browse files
committed
Remove casting
1 parent e6aff5b commit 9341513

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,11 +1388,9 @@ trait Applications extends Compatibility {
13881388
// TODO: Maybe the 'reorder' method above can be reused, or be template
13891389
if (bunchedArgs != Nil && remainingArgTypes != Nil) {
13901390

1391-
val resTypeOfUnapplyFn = unapplyFn.tpe.widen.asInstanceOf[MethodType].resType
1392-
13931391
val names: SingleDenotation =
1394-
resTypeOfUnapplyFn.member(nme.get).info
1395-
.orElse(resTypeOfUnapplyFn)
1392+
mt.resType.member(nme.get).info
1393+
.orElse(mt.resType)
13961394
.member(tpnme.Names)
13971395
.accessibleFrom(selType)
13981396
// TODO: Is it possible to get something else than a SingleDenotation?

0 commit comments

Comments
 (0)