|
14 | 14 | -- [E204] Syntax Warning: tests/neg/infix-named-args.scala:4:15 -------------------------------------------------------- |
15 | 15 | 4 | def f = 42 + (x = 1) // error // werror |
16 | 16 | | ^^^^^^^ |
17 | | - |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 17 | + |Deprecated syntax: infix named arguments lists are deprecated; in the future it would be interpreted as a single name tuple argument. |
| 18 | + |To avoid this warning, either remove the argument names or use dotted selection. |
18 | 19 | |This can be rewritten automatically under -rewrite -source 3.6-migration. |
19 | | - | |
20 | | - | longer explanation available when compiling with `-explain` |
21 | 20 | -- [E204] Syntax Warning: tests/neg/infix-named-args.scala:7:26 -------------------------------------------------------- |
22 | 21 | 7 | def g = new C() `multi` (x = 42, y = 27) // werror |
23 | 22 | | ^^^^^^^^^^^^^^^^ |
24 | | - |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 23 | + |Deprecated syntax: infix named arguments lists are deprecated; in the future it would be interpreted as a single name tuple argument. |
| 24 | + |To avoid this warning, either remove the argument names or use dotted selection. |
25 | 25 | |This can be rewritten automatically under -rewrite -source 3.6-migration. |
26 | | - | |
27 | | - | longer explanation available when compiling with `-explain` |
28 | 26 | -- [E204] Syntax Warning: tests/neg/infix-named-args.scala:8:21 -------------------------------------------------------- |
29 | 27 | 8 | def h = new C() ** (x = 42, y = 27) // werror |
30 | 28 | | ^^^^^^^^^^^^^^^^ |
31 | | - |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 29 | + |Deprecated syntax: infix named arguments lists are deprecated; in the future it would be interpreted as a single name tuple argument. |
| 30 | + |To avoid this warning, either remove the argument names or use dotted selection. |
32 | 31 | |This can be rewritten automatically under -rewrite -source 3.6-migration. |
33 | | - | |
34 | | - | longer explanation available when compiling with `-explain` |
35 | 32 | -- [E204] Syntax Warning: tests/neg/infix-named-args.scala:15:18 ------------------------------------------------------- |
36 | 33 | 15 | def f = this ** (x = 2) // werror |
37 | 34 | | ^^^^^^^ |
38 | | - |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 35 | + |Deprecated syntax: infix named arguments lists are deprecated; in the future it would be interpreted as a single name tuple argument. |
| 36 | + |To avoid this warning, either remove the argument names or use dotted selection. |
39 | 37 | |This can be rewritten automatically under -rewrite -source 3.6-migration. |
40 | | - | |
41 | | - | longer explanation available when compiling with `-explain` |
0 commit comments