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 81ec565 commit dd661ddCopy full SHA for dd661dd
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -946,7 +946,7 @@ class Typer extends Namer
946
i"""internal error: cannot turn method type $mt into closure
947
|because it has internal parameter dependencies,
948
|position = ${tree.pos}, raw type = ${mt.toString}""") // !!! DEBUG. Eventually, convert to an error?
949
- } else if (mt.isUnusedMethod) TypeTree(mt.toFunctionType(env1.length))
+ }
950
else EmptyTree
951
}
952
case tp =>
0 commit comments