|
| 1 | +-- [E134] Type Error: tests/neg/infix-named-args.scala:2:13 ------------------------------------------------------------ |
| 2 | +2 | def f = 42 + (x = 1) // error // werror |
| 3 | + | ^^^^ |
| 4 | + | None of the overloaded alternatives of method + in class Int with types |
| 5 | + | (x: Double): Double |
| 6 | + | (x: Float): Float |
| 7 | + | (x: Long): Long |
| 8 | + | (x: Int): Int |
| 9 | + | (x: Char): Int |
| 10 | + | (x: Short): Int |
| 11 | + | (x: Byte): Int |
| 12 | + | (x: String): String |
| 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 |
| 16 | + | ^^^^^^^ |
| 17 | + |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 18 | + |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 |
| 23 | + | ^^^^^^^^^^^^^^^^ |
| 24 | + |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 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 |
| 30 | + | ^^^^^^^^^^^^^^^^ |
| 31 | + |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 32 | + |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 |
| 37 | + | ^^^^^^^ |
| 38 | + |Ambigious syntax: this infix call argument list is interpreted as single named tuple argument, not as an named arguments list. |
| 39 | + |This can be rewritten automatically under -rewrite -source 3.6-migration. |
| 40 | + | |
| 41 | + | longer explanation available when compiling with `-explain` |
0 commit comments