File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/reporting Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3362,7 +3362,7 @@ end QuotedTypeMissing
33623362
33633363final class DeprecatedAssignmentSyntax (key : Name , value : untpd.Tree )(using Context ) extends SyntaxMsg (DeprecatedAssignmentSyntaxID ):
33643364 override protected def msg (using Context ): String =
3365- i """ Ambiguous syntax: this is interpreted as a named tuple with one element,
3365+ i """ Deprecated syntax: since 3.7 this is interpreted as a named tuple with one element,
33663366 |not as an assignment.
33673367 |
33683368 |To assign a value, use curly braces: `{ ${key} = ${value}}`. """
Original file line number Diff line number Diff line change 11-- [E203] Syntax Migration Warning: tests/warn/21681.scala:3:2 ---------------------------------------------------------
223 | (age = 29) // warn
33 | ^^^^^^^^^^
4- | Ambiguous syntax: this is interpreted as a named tuple with one element,
4+ | Deprecated syntax: since 3.7 this is interpreted as a named tuple with one element,
55 | not as an assignment.
66 |
77 | To assign a value, use curly braces: `{age = 29}`.
Original file line number Diff line number Diff line change 11-- [E203] Syntax Migration Warning: tests/warn/21681b.scala:3:2 --------------------------------------------------------
223 | (age = 29) // warn
33 | ^^^^^^^^^^
4- | Ambiguous syntax: this is interpreted as a named tuple with one element,
4+ | Deprecated syntax: since 3.7 this is interpreted as a named tuple with one element,
55 | not as an assignment.
66 |
77 | To assign a value, use curly braces: `{age = 29}`.
Original file line number Diff line number Diff line change 11-- [E203] Syntax Migration Warning: tests/warn/21681c.scala:5:2 --------------------------------------------------------
225 | (age = 29) // warn
33 | ^^^^^^^^^^
4- | Ambiguous syntax: this is interpreted as a named tuple with one element,
4+ | Deprecated syntax: since 3.7 this is interpreted as a named tuple with one element,
55 | not as an assignment.
66 |
77 | To assign a value, use curly braces: `{age = 29}`.
Original file line number Diff line number Diff line change 11-- [E203] Syntax Migration Warning: tests/warn/21770.scala:5:9 ---------------------------------------------------------
225 | f(i => (cache = Some(i))) // warn
33 | ^^^^^^^^^^^^^^^^^
4- | Ambiguous syntax: this is interpreted as a named tuple with one element,
4+ | Deprecated syntax: since 3.7 this is interpreted as a named tuple with one element,
55 | not as an assignment.
66 |
77 | To assign a value, use curly braces: `{cache = Some(i)}`.
You can’t perform that action at this time.
0 commit comments