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 5f3c3e8 commit 46c1ce4Copy full SHA for 46c1ce4
compiler/src/dotty/tools/dotc/transform/ExpandSAMs.scala
@@ -34,7 +34,7 @@ class ExpandSAMs extends MiniPhase {
34
ctx.platform.isSam(cls)
35
36
override def transformBlock(tree: Block)(implicit ctx: Context): Tree = tree match {
37
- case Block(stats @ (fn: DefDef) :: Nil, cl @ Closure(_, fnRef, tpt)) if fnRef.symbol == fn.symbol =>
+ case Block(stats @ (fn: DefDef) :: Nil, Closure(_, fnRef, tpt)) if fnRef.symbol == fn.symbol =>
38
tpt.tpe match {
39
case NoType =>
40
tree // it's a plain function
0 commit comments