Skip to content

Dotty emit wrong generic signature for generic value classes  #22140

Open
@hamzaremmal

Description

@hamzaremmal

Compiler version

3.5.1

Minimized code

class Bar[T](val value: T) extends AnyVal
object Foo {
    def bar[T](implicit vt: Bar[T]) = vt.value
}

Output

javap Foo.class
Compiled from "predef-issues.scala"
public final class Foo {
  public static <T> T bar(java.lang.Object);
}

Expectation

Follow SIP-15 and Scala 2:

javap Foo.class
Compiled from "predef-issues.scala"
public final class Foo {
  public static <T> T bar(T);
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions