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
If we look at the bytecode produced from run/statics.scala, we see:
Users/odersky/workspace/dotty/tests/run> javap -cp /classes -private Foo
Compiled from "statics.scala"
public class Foo {
public static final long OFFSET$0;
public long bitmap$0;
public Foo$Bar$ Bar$lzy1;
public static int mutable;
public static int field;
private static int mutable$$local;
public Foo();
private static {};
public final Foo$Bar$ Bar();
public static int method();
public static void mutable_$eq(int);
public static int accessor();
}
Note that both mutable and mutable$$local are fields. mutable should be an accessor method instead. This bug prevents us from dropping $$local suffixes in semantic names.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
If we look at the bytecode produced from run/statics.scala, we see:
Note that both
mutable
andmutable$$local
are fields.mutable
should be an accessor method instead. This bug prevents us from dropping$$local
suffixes in semantic names.The text was updated successfully, but these errors were encountered: