Skip to content

Java generic signature of paths can be improved #24272

@hamzaremmal

Description

@hamzaremmal

Compiler version

ce57b71

Minimized code

trait Foo {
  def identity[A](a: A): a.type = a
}

Output

//> javap Foo  
Compiled from "test.scala"
public interface Foo {
  public static java.lang.Object identity$(Foo, java.lang.Object);
  public default <A> java.lang.Object identity(A);
}

Expectation

The signature of identity can be improved as with Scala 2.

//> javap Foo  
Compiled from "test.scala"
public interface Foo {
  public static java.lang.Object identity$(Foo, java.lang.Object);
  public default <A> A identity(A);
  public static void $init$(Foo);
}
``

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions