-
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.
Add migration rewrite for deprecated assignment syntax
- Loading branch information
1 parent
a4ea8bf
commit 861beee
Showing
10 changed files
with
28 additions
and
34 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
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- [E203] Syntax Migration Warning: tests/warn/21681.scala:5:2 --------------------------------------------------------- | ||
5 | (age = 29) // warn | ||
| ^^^^^^^^^^ | ||
| Ambiguous syntax: this is interpreted as a named tuple with one element, | ||
| Deprecated syntax: in the future it would be interpreted as a named tuple with one element, | ||
| not as an assignment. | ||
| | ||
| To assign a value, use curly braces: `{age = 29}`. |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- [E203] Syntax Migration Warning: tests/warn/21681b.scala:5:2 -------------------------------------------------------- | ||
5 | (age = 29) // warn | ||
| ^^^^^^^^^^ | ||
| Ambiguous syntax: this is interpreted as a named tuple with one element, | ||
| Deprecated syntax: in the future it would be interpreted as a named tuple with one element, | ||
| not as an assignment. | ||
| | ||
| To assign a value, use curly braces: `{age = 29}`. |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- [E203] Syntax Migration Warning: tests/warn/21681c.scala:7:2 -------------------------------------------------------- | ||
7 | (age = 29) // warn | ||
| ^^^^^^^^^^ | ||
| Ambiguous syntax: this is interpreted as a named tuple with one element, | ||
| Deprecated syntax: in the future it would be interpreted as a named tuple with one element, | ||
| not as an assignment. | ||
| | ||
| To assign a value, use curly braces: `{age = 29}`. |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- [E203] Syntax Migration Warning: tests/warn/21770.scala:7:9 --------------------------------------------------------- | ||
7 | f(i => (cache = Some(i))) // warn | ||
| ^^^^^^^^^^^^^^^^^ | ||
| Ambiguous syntax: this is interpreted as a named tuple with one element, | ||
| Deprecated syntax: in the future it would be interpreted as a named tuple with one element, | ||
| not as an assignment. | ||
| | ||
| To assign a value, use curly braces: `{cache = Some(i)}`. |