-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2096 from bjaglin/scala3minors
test usage of minor Scala 3 PC versions
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
scalafix-tests/input/src/main/scala-3lts/test/explicitResultTypes/BeforeScala3_4.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
rules = ExplicitResultTypes | ||
ExplicitResultTypes.fetchScala3CompilerArtifactsOnVersionMismatch = true | ||
*/ | ||
package test.explicitResultTypes | ||
|
||
object BeforeScala3_4 { | ||
def foo = { | ||
val xs = List(Some(1), None) | ||
for Some(x) <- xs yield x | ||
} | ||
} | ||
|
10 changes: 10 additions & 0 deletions
10
scalafix-tests/input/src/main/scala-3next/test/explicitResultTypes/Scala3_5OrGreater.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
rules = ExplicitResultTypes | ||
ExplicitResultTypes.skipSimpleDefinitions = false | ||
*/ | ||
package test.explicitResultTypes | ||
|
||
object Scala3_5OrGreater { | ||
def foo = 0b0010_0000 | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
scalafix-tests/output/src/main/scala-3lts/test/explicitResultTypes/BeforeScala3_4.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package test.explicitResultTypes | ||
|
||
object BeforeScala3_4 { | ||
def foo: List[Int] = { | ||
val xs = List(Some(1), None) | ||
for Some(x) <- xs yield x | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
scalafix-tests/output/src/main/scala-3next/test/explicitResultTypes/Scala3_5OrGreater.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package test.explicitResultTypes | ||
|
||
object Scala3_5OrGreater { | ||
def foo: Int = 0b0010_0000 | ||
} | ||
|