Skip to content

Signature of method taking generic array differs from Scala 2 #8349

Closed
@som-snytt

Description

@som-snytt

minimized code

class C {
  def f[A](as: Array[A]) = 42
}

Compilation output

$ ~/bin/dotc vargen.scala && javap C
Compiled from "vargen.scala"
public class C {
  public C();
  public <A> int f(A[]);
}

expectation

Compiled from "vargen.scala"
public class C {
  public <A> int f(java.lang.Object);
  public C();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions