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.
<into>
1 parent aaea883 commit b2a7932Copy full SHA for b2a7932
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2094,6 +2094,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
2094
&& checkedArgs(1).tpe.derivesFrom(defn.RuntimeExceptionClass)
2095
then
2096
report.error(em"throws clause cannot be defined for RuntimeException", checkedArgs(1).srcPos)
2097
+ else if tycon == defn.IntoType then
2098
+ report.error(em"not found: <into>", tpt1.srcPos)
2099
else if (ctx.isJava)
2100
if tycon eq defn.ArrayClass then
2101
checkedArgs match {
0 commit comments