Skip to content

No generic signature generated for type aliases #13103

Closed
@hamdiallam

Description

@hamdiallam

Compiler version: 3.0.1

Problem

Given

Scala

object Foo {
  type IntGetter = () => Int
  def getFunc(): IntGetter = () => 1
  def getFunc2(): () => Int = () => 1
}

The generic signatures generated (as seen using javap) are:

public static scala.Function0 getFunc();
public static scala.Function0<java.lang.Object> getFunc2();

Whereas in Scala 2 we get:

public static scala.Function0<java.lang.Object> getFunc();
public static scala.Function0<java.lang.Object> getFunc2();

Metadata

Metadata

Assignees

No one assigned

    Labels

    compat:javagood first issuePerfect for someone who wants to get started contributing

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions