Skip to content

Valid type projection fails #2949

Closed
@Jasper-M

Description

@Jasper-M
class Foo(a: Foo#A) {
  type A = Int
}

fails with the error

found:    Foo
required: ?{ A: ? }

Scalac succesfully compiles this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions