Skip to content

Commit

Permalink
align options
Browse files Browse the repository at this point in the history
  • Loading branch information
lrytz committed Jan 31, 2024
1 parent 0996ac6 commit e897b8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions test/files/neg/t3664.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

//> using options -Werror -Xlint -Xsource:3
//> abusing options -Werror -Xlint -Xsource:3migration

// use 3migration to warn that implicitly extending Function is deprecated
// use 3cross for dotty behavior: no extend Function, yes adapt C.apply.tupled
// use 3 to warn that implicitly extending Function is deprecated
// use 3-cross for dotty behavior: no extend Function, yes adapt C.apply.tupled

case class C(i: Int)

Expand Down
6 changes: 3 additions & 3 deletions test/files/neg/t3664c.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

//> using options -Werror -Xlint -Xsource:3.0.1
//> abusing options -Werror -Xlint -Xsource:3cross
//> abusing options -Werror -Xlint -Xsource:3-cross

// use 3migration to warn that implicitly extending Function is deprecated
// use 3cross for dotty behavior: no extend Function, yes adapt C.apply.tupled
// use 3 to warn that implicitly extending Function is deprecated
// use 3-cross for dotty behavior: no extend Function, yes adapt C.apply.tupled

case class C(i: Int)

Expand Down
2 changes: 1 addition & 1 deletion test/files/run/t3664b.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//> abusing options -Werror -Xlint -Xsource:3migration

// use 3migration to warn that implicitly extending Function is deprecated
// use 3cross for dotty behavior: no extend Function, yes adapt C.apply.tupled
// use 3-cross for dotty behavior: no extend Function, yes adapt C.apply.tupled

case class C(i: Int, j: Int)

Expand Down

0 comments on commit e897b8a

Please sign in to comment.