Skip to content

Scalafix can't parse context bounds in polymorphic functions added in Scala 3.6.3 #2182

@mrdziuban

Description

@mrdziuban

Using the new context bounds for polymorphic functions feature added in Scala 3.6.3 (scala/scala3#21643) like this:

val test: [A: Numeric] => A => Int = [A: Numeric] => _.toInt

results in an error in Scalafix:

/Users/matt/Desktop/test.scala:1:11: error: `identifier` expected but `[` found
val test: [A: Numeric] => A => Int = [A: Numeric] => _.toInt
          ^

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