Skip to content

Backend ignores NoInits flag, always emit $init$ method on traits #2081

Closed
@smarter

Description

@smarter
trait Foo {
  def meth(x: Int): Int
}

Compiled with dotty, then decompiled with cfr:

public interface Foo {
    default public void $init$() {
    }

    public int meth(int var1);
}

Compiled with Scala 2.12 then decompiled:

public interface Foo {
    public int meth(int var1);
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions