|  | 
| 1 | 1 | -- [E134] Type Error: tests/neg/infix-named-args.scala:2:13 ------------------------------------------------------------ | 
| 2 |  | -2 |  def f = 42 + (x = 1) // error // a named tuple! | 
|  | 2 | +2 |  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 |  | --- [E007] Type Mismatch Error: tests/neg/infix-named-args.scala:13:18 -------------------------------------------------- | 
| 15 |  | -13 |  def g = this ** 2 // error | 
| 16 |  | -   |                  ^ | 
| 17 |  | -   |                  Found:    (2 : Int) | 
| 18 |  | -   |                  Required: X | 
|  | 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. | 
| 19 | 40 |    | | 
| 20 | 41 |    | longer explanation available when compiling with `-explain` | 
| 21 |  | -there were 6 deprecation warnings; re-run with -deprecation for details | 
|  | 
0 commit comments