-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only replace *new* errors by warnings under
-migration
This makes `errorOrMigrationWarning` monotonic from the sourceVersion onto ok < warn < error For example, ForComprehensionPatternWithoutCase: - became an error in 3.4, - was hence a warning in 3.4-migration, - but it should still be an error in 3.5-migration.
- Loading branch information
1 parent
5da1855
commit 0000d23
Showing
2 changed files
with
6 additions
and
1 deletion.
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
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,5 @@ | ||
//> using options -source:3.5-migration | ||
|
||
object Test: | ||
for Some(x) <- Seq(Option(1)) yield x // error | ||
// was warn before changes, but should warn only until 3.4-migration |