Skip to content

Commit dd661dd

Browse files
committed
Remove special case for unused closure
1 parent 81ec565 commit dd661dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ class Typer extends Namer
946946
i"""internal error: cannot turn method type $mt into closure
947947
|because it has internal parameter dependencies,
948948
|position = ${tree.pos}, raw type = ${mt.toString}""") // !!! DEBUG. Eventually, convert to an error?
949-
} else if (mt.isUnusedMethod) TypeTree(mt.toFunctionType(env1.length))
949+
}
950950
else EmptyTree
951951
}
952952
case tp =>

0 commit comments

Comments
 (0)