Skip to content

Creator application is lost on type alias (e.g. on AnyRef) #10862

Closed as not planned
@rjolly

Description

@rjolly

Minimized code and output

object foo {
  class A(n: Int)
}
type A = foo.A
println(A(1))
        ^
        Not found: A

Expectation : should work as with new

println(new A(1)) // ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions