I can't belive there is no bug for it already, but I genuinly couldn't find one.
Scala version: 2.13.12
class Spec[@specialized(Int) A](x :Int)
Problem
turin@turin-ThinkPad-X250:~/porn/sugar$ javap -p target/scala-2.13/test-classes/Spec.class
Compiled from "Playground.scala"
public class Spec<A> {
public Spec(int);
}
turin@turin-ThinkPad-X250:~/porn/sugar$ javap -p target/scala-2.13/test-classes/Spec\$mcI\$sp.class
Compiled from "Playground.scala"
public class Spec$mcI$sp extends Spec<java.lang.Object> {
private final int x;
public Spec$mcI$sp(int);
}
Reproduction steps
I can't belive there is no bug for it already, but I genuinly couldn't find one.
Scala version: 2.13.12
Problem
Spec$mcI$sp
doesn't needprivate final int x
.