diff --git a/tests/neg/f-interpolator-neg.check b/tests/neg/f-interpolator-neg.check index ea8df052589e..fe82f197ad56 100644 --- a/tests/neg/f-interpolator-neg.check +++ b/tests/neg/f-interpolator-neg.check @@ -1,200 +1,200 @@ --- Error: tests/neg/f-interpolator-neg.scala:4:4 ----------------------------------------------------------------------- -4 | new StringContext().f() // error - | ^^^^^^^^^^^^^^^^^^^^^ - | there are no parts --- Error: tests/neg/f-interpolator-neg.scala:5:4 ----------------------------------------------------------------------- -5 | new StringContext("", " is ", "%2d years old").f(s) // error - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | too few arguments for interpolated string --- Error: tests/neg/f-interpolator-neg.scala:6:4 ----------------------------------------------------------------------- -6 | new StringContext("", " is ", "%2d years old").f(s, d, d) // error - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | too many arguments for interpolated string --- Error: tests/neg/f-interpolator-neg.scala:7:4 ----------------------------------------------------------------------- -7 | new StringContext("", "").f() // error - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | too few arguments for interpolated string --- Error: tests/neg/f-interpolator-neg.scala:11:7 ---------------------------------------------------------------------- -11 | f"$s%b" // error - | ^ - | Found: (s : String), Required: Boolean, Null --- Error: tests/neg/f-interpolator-neg.scala:12:7 ---------------------------------------------------------------------- -12 | f"$s%c" // error - | ^ - | Found: (s : String), Required: Char, Byte, Short, Int --- Error: tests/neg/f-interpolator-neg.scala:13:7 ---------------------------------------------------------------------- -13 | f"$f%c" // error - | ^ - | Found: (f : Double), Required: Char, Byte, Short, Int --- Error: tests/neg/f-interpolator-neg.scala:14:7 ---------------------------------------------------------------------- -14 | f"$s%x" // error - | ^ - | Found: (s : String), Required: Int, Long, Byte, Short, BigInt --- Error: tests/neg/f-interpolator-neg.scala:15:7 ---------------------------------------------------------------------- -15 | f"$b%d" // error - | ^ - | Found: (b : Boolean), Required: Int, Long, Byte, Short, BigInt --- Error: tests/neg/f-interpolator-neg.scala:16:7 ---------------------------------------------------------------------- -16 | f"$s%d" // error - | ^ - | Found: (s : String), Required: Int, Long, Byte, Short, BigInt --- Error: tests/neg/f-interpolator-neg.scala:17:7 ---------------------------------------------------------------------- -17 | f"$f%o" // error - | ^ - | Found: (f : Double), Required: Int, Long, Byte, Short, BigInt --- Error: tests/neg/f-interpolator-neg.scala:18:7 ---------------------------------------------------------------------- -18 | f"$s%e" // error - | ^ - | Found: (s : String), Required: Double, Float, BigDecimal --- Error: tests/neg/f-interpolator-neg.scala:19:7 ---------------------------------------------------------------------- -19 | f"$b%f" // error - | ^ - | Found: (b : Boolean), Required: Double, Float, BigDecimal --- Error: tests/neg/f-interpolator-neg.scala:20:9 ---------------------------------------------------------------------- -20 | f"$s%i" // error - | ^ - | illegal conversion character 'i' --- Error: tests/neg/f-interpolator-neg.scala:24:9 ---------------------------------------------------------------------- -24 | f"$s%+ 0,(s" // error - | ^^^^^ - | Illegal flag '+' --- Error: tests/neg/f-interpolator-neg.scala:25:9 ---------------------------------------------------------------------- -25 | f"$c%#+ 0,(c" // error - | ^^^^^^ - | Only '-' allowed for c conversion --- Error: tests/neg/f-interpolator-neg.scala:26:9 ---------------------------------------------------------------------- -26 | f"$d%#d" // error - | ^ - | # not allowed for d conversion --- Error: tests/neg/f-interpolator-neg.scala:27:9 ---------------------------------------------------------------------- -27 | f"$d%,x" // error - | ^ - | ',' only allowed for d conversion of integral types --- Error: tests/neg/f-interpolator-neg.scala:28:9 ---------------------------------------------------------------------- -28 | f"$d%+ (x" // error - | ^^^ - | only use '+' for BigInt conversions to o, x, X --- Error: tests/neg/f-interpolator-neg.scala:29:9 ---------------------------------------------------------------------- -29 | f"$f%,(a" // error - | ^^ - | ',' not allowed for a, A --- Error: tests/neg/f-interpolator-neg.scala:30:9 ---------------------------------------------------------------------- -30 | f"$t%#+ 0,(tT" // error - | ^^^^^^ - | Only '-' allowed for date/time conversions --- Error: tests/neg/f-interpolator-neg.scala:31:7 ---------------------------------------------------------------------- -31 | f"%-#+ 0,(n" // error - | ^^^^^^^ - | flags not allowed --- Error: tests/neg/f-interpolator-neg.scala:32:7 ---------------------------------------------------------------------- -32 | f"%#+ 0,(%" // error - | ^^^^^^ - | Illegal flag '#' --- Error: tests/neg/f-interpolator-neg.scala:36:9 ---------------------------------------------------------------------- -36 | f"$c%.2c" // error - | ^^ - | precision not allowed --- Error: tests/neg/f-interpolator-neg.scala:37:9 ---------------------------------------------------------------------- -37 | f"$d%.2d" // error - | ^^ - | precision not allowed --- Error: tests/neg/f-interpolator-neg.scala:38:7 ---------------------------------------------------------------------- -38 | f"%.2%" // error - | ^^ - | precision not allowed --- Error: tests/neg/f-interpolator-neg.scala:39:7 ---------------------------------------------------------------------- -39 | f"%.2n" // error - | ^^ - | precision not allowed --- Error: tests/neg/f-interpolator-neg.scala:40:9 ---------------------------------------------------------------------- -40 | f"$f%.2a" // error - | ^^ - | precision not allowed --- Error: tests/neg/f-interpolator-neg.scala:41:9 ---------------------------------------------------------------------- -41 | f"$t%.2tT" // error - | ^^ - | precision not allowed --- Error: tests/neg/f-interpolator-neg.scala:45:7 ---------------------------------------------------------------------- -45 | f"%