Skip to content

Bug with -Ykind-projector and * term #13141

Closed
@japgolly

Description

@japgolly

Compiler version

  • 3.0.1
  • 3.0.2-RC1

Minimized code

object A {

  class X { type Blah = Int }

  val * = new X

  val a: *.Blah = 2
}

Output

[error] 7 |  val a: *.Blah = 2
[error]   |          ^
[error]   |          end of statement expected but '.' found
[error] one error found

Expectation

Should compile. It does in Scala 3 without the -Ykind-projector flag.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions