|
1 |
| --- [E134] Type Error: tests/neg/infix-named-args.scala:2:13 ------------------------------------------------------------ |
2 |
| -2 | def f = 42 + (x = 1) // error // werror |
| 1 | +-- [E134] Type Error: tests/neg/infix-named-args.scala:4:13 ------------------------------------------------------------ |
| 2 | +4 | def f = 42 + (x = 1) // error // werror |
3 | 3 | | ^^^^
|
4 | 4 | | None of the overloaded alternatives of method + in class Int with types
|
5 | 5 | | (x: Double): Double
|
|
11 | 11 | | (x: Byte): Int
|
12 | 12 | | (x: String): String
|
13 | 13 | | match arguments ((x : Int)) (a named tuple)
|
14 |
| --- [E204] Syntax Warning: tests/neg/infix-named-args.scala:2:15 -------------------------------------------------------- |
15 |
| -2 | def f = 42 + (x = 1) // error // werror |
| 14 | +-- [E204] Syntax Warning: tests/neg/infix-named-args.scala:4: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 |
| --- [E204] Syntax Warning: tests/neg/infix-named-args.scala:5:26 -------------------------------------------------------- |
22 |
| -5 | def g = new C() `multi` (x = 42, y = 27) // werror |
| 20 | +-- [E204] Syntax Warning: tests/neg/infix-named-args.scala:7:26 -------------------------------------------------------- |
| 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 |
| --- [E204] Syntax Warning: tests/neg/infix-named-args.scala:6:21 -------------------------------------------------------- |
29 |
| -6 | def h = new C() ** (x = 42, y = 27) // werror |
| 26 | +-- [E204] Syntax Warning: tests/neg/infix-named-args.scala:8:21 -------------------------------------------------------- |
| 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 |
| --- [E204] Syntax Warning: tests/neg/infix-named-args.scala:13:18 ------------------------------------------------------- |
36 |
| -13 | def f = this ** (x = 2) // werror |
| 32 | +-- [E204] Syntax Warning: tests/neg/infix-named-args.scala:15:18 ------------------------------------------------------- |
| 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