You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx.error(ex"result type of closure is an underspecified SAM type $pt", tree.pos)
897
899
TypeTree(pt)
898
900
case _ =>
899
-
if (!mt.isDependent) EmptyTree
900
-
elsethrownew java.lang.Error(i"internal error: cannot turn dependent method type $mt into closure, position = ${tree.pos}, raw type = ${mt.toString}") // !!! DEBUG. Eventually, convert to an error?
901
+
if (!mt.isParamDependent) EmptyTree
902
+
elsethrownew java.lang.Error(
903
+
i"""internal error: cannot turn method type $mt into closure
904
+
|because it has internal parameter dependencies,
905
+
|position = ${tree.pos}, raw type = ${mt.toString}""") // !!! DEBUG. Eventually, convert to an error?
901
906
}
902
907
case tp =>
903
908
thrownew java.lang.Error(i"internal error: closing over non-method $tp, pos = ${tree.pos}")
@@ -1331,7 +1336,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
0 commit comments