This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ sandbox git:(removeIcode) cat Test.scala | |
class C { | |
def f(l: List[String]) = l foreach println | |
} | |
➜ sandbox git:(removeIcode) ~/scala/scala3/build/pack/bin/scalac -Yopt:l:classpath Test.scala | |
➜ sandbox git:(removeIcode) cfr-decompiler C.class | |
public class C { | |
private static /* synthetic */ Map $deserializeLambdaCache$; | |
public void f(List<String> l) { | |
if (l == null) { | |
throw null; | |
} | |
List foreach_these = l; | |
while (!foreach_these.isEmpty()) { | |
C.C$$$anonfun$1$adapted(foreach_these.head()); | |
foreach_these = (List)foreach_these.tail(); | |
} | |
} | |
public static final /* synthetic */ Object C$$$anonfun$1$adapted(Object x) { | |
Predef..MODULE$.println(x); | |
return BoxedUnit.UNIT; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment