Skip to content

Error message mentions -rewrite but rewrites also requires -source 3.0-migration #10692

Closed
@tpolecat

Description

@tpolecat

I am getting messages about code that can be "rewritten automatically under -rewrite", such as the following:

[error] -- Error: /Users/rnorris/Scala/atto/modules/fs2/src/test/scala/atto/fs2/PipesTest.scala:14:86 
[error] 14 |  property("parse1 parses single value correctly") = forAll(Gen.posNum[Int]) { i: Int =>
[error]    |                                                                                      ^
[error]    |           parentheses are required around the parameter of a lambda
[error]    |           This construct can be rewritten automatically under -rewrite.

but adding -rewrite to my scalacOptions in sbt has no effect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions