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.
def
1 parent c35fbe4 commit 62ea061Copy full SHA for 62ea061
compiler/src/dotty/tools/dotc/cc/Capability.scala
@@ -21,7 +21,7 @@ import annotation.constructorOnly
21
import ast.tpd
22
import printing.{Printer, Showable}
23
import printing.Texts.Text
24
-import reporting.Message
+import reporting.{Message, trace}
25
import NameOps.isImpureFunction
26
import annotation.internal.sharable
27
@@ -881,6 +881,8 @@ object Capabilities:
881
m(tp) match
882
case tp1: ExprType if sym.is(Method, butNot = Accessor) =>
883
tp1.derivedExprType(toResult(tp1.resType, tp1, fail))
884
+ case tp1: PolyType if !tp1.resType.isInstanceOf[MethodicType] =>
885
+ tp1.derivedLambdaType(resType = toResult(tp1.resType, tp1, fail))
886
case tp1 => tp1
887
end toResultInResults
888
0 commit comments