|
| 1 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:4:25 --------------------------------------------- |
| 2 | +4 | new StringContext().f() // error |
| 3 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 5 | + | |
| 6 | + | longer explanation available when compiling with `-explain` |
| 7 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:5:52 --------------------------------------------- |
| 8 | +5 | new StringContext("", " is ", "%2d years old").f(s) // error |
| 9 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 10 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 11 | + | |
| 12 | + | longer explanation available when compiling with `-explain` |
| 13 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:6:52 --------------------------------------------- |
| 14 | +6 | new StringContext("", " is ", "%2d years old").f(s, d, d) // error |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 17 | + | |
| 18 | + | longer explanation available when compiling with `-explain` |
| 19 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:11:4 --------------------------------------------- |
| 20 | +11 | f"$s%b" // error |
| 21 | + | ^^^^^^^ |
| 22 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 23 | + | |
| 24 | + | longer explanation available when compiling with `-explain` |
| 25 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:12:4 --------------------------------------------- |
| 26 | +12 | f"$s%c" // error |
| 27 | + | ^^^^^^^ |
| 28 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 29 | + | |
| 30 | + | longer explanation available when compiling with `-explain` |
| 31 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:13:4 --------------------------------------------- |
| 32 | +13 | f"$f%c" // error |
| 33 | + | ^^^^^^^ |
| 34 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 35 | + | |
| 36 | + | longer explanation available when compiling with `-explain` |
| 37 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:14:4 --------------------------------------------- |
| 38 | +14 | f"$s%x" // error |
| 39 | + | ^^^^^^^ |
| 40 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 41 | + | |
| 42 | + | longer explanation available when compiling with `-explain` |
| 43 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:15:4 --------------------------------------------- |
| 44 | +15 | f"$b%d" // error |
| 45 | + | ^^^^^^^ |
| 46 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 47 | + | |
| 48 | + | longer explanation available when compiling with `-explain` |
| 49 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:16:4 --------------------------------------------- |
| 50 | +16 | f"$s%d" // error |
| 51 | + | ^^^^^^^ |
| 52 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 53 | + | |
| 54 | + | longer explanation available when compiling with `-explain` |
| 55 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:17:4 --------------------------------------------- |
| 56 | +17 | f"$f%o" // error |
| 57 | + | ^^^^^^^ |
| 58 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 59 | + | |
| 60 | + | longer explanation available when compiling with `-explain` |
| 61 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:18:4 --------------------------------------------- |
| 62 | +18 | f"$s%e" // error |
| 63 | + | ^^^^^^^ |
| 64 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 65 | + | |
| 66 | + | longer explanation available when compiling with `-explain` |
| 67 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:19:4 --------------------------------------------- |
| 68 | +19 | f"$b%f" // error |
| 69 | + | ^^^^^^^ |
| 70 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 71 | + | |
| 72 | + | longer explanation available when compiling with `-explain` |
| 73 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:24:4 --------------------------------------------- |
| 74 | +24 | f"$s%+ 0,(s" // error |
| 75 | + | ^^^^^^^^^^^^ |
| 76 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 77 | + | |
| 78 | + | longer explanation available when compiling with `-explain` |
| 79 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:25:4 --------------------------------------------- |
| 80 | +25 | f"$c%#+ 0,(c" // error |
| 81 | + | ^^^^^^^^^^^^^ |
| 82 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 83 | + | |
| 84 | + | longer explanation available when compiling with `-explain` |
| 85 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:26:4 --------------------------------------------- |
| 86 | +26 | f"$d%#d" // error |
| 87 | + | ^^^^^^^^ |
| 88 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 89 | + | |
| 90 | + | longer explanation available when compiling with `-explain` |
| 91 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:27:4 --------------------------------------------- |
| 92 | +27 | f"$d%,x" // error |
| 93 | + | ^^^^^^^^ |
| 94 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 95 | + | |
| 96 | + | longer explanation available when compiling with `-explain` |
| 97 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:28:4 --------------------------------------------- |
| 98 | +28 | f"$d%+ (x" // error |
| 99 | + | ^^^^^^^^^^ |
| 100 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 101 | + | |
| 102 | + | longer explanation available when compiling with `-explain` |
| 103 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:29:4 --------------------------------------------- |
| 104 | +29 | f"$f%,(a" // error |
| 105 | + | ^^^^^^^^^ |
| 106 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 107 | + | |
| 108 | + | longer explanation available when compiling with `-explain` |
| 109 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:30:4 --------------------------------------------- |
| 110 | +30 | f"$t%#+ 0,(tT" // error |
| 111 | + | ^^^^^^^^^^^^^^ |
| 112 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 113 | + | |
| 114 | + | longer explanation available when compiling with `-explain` |
| 115 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:31:4 --------------------------------------------- |
| 116 | +31 | f"%-#+ 0,(n" // error |
| 117 | + | ^^^^^^^^^^^^ |
| 118 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 119 | + | |
| 120 | + | longer explanation available when compiling with `-explain` |
| 121 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:36:4 --------------------------------------------- |
| 122 | +36 | f"$c%.2c" // error |
| 123 | + | ^^^^^^^^^ |
| 124 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 125 | + | |
| 126 | + | longer explanation available when compiling with `-explain` |
| 127 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:37:4 --------------------------------------------- |
| 128 | +37 | f"$d%.2d" // error |
| 129 | + | ^^^^^^^^^ |
| 130 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 131 | + | |
| 132 | + | longer explanation available when compiling with `-explain` |
| 133 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:38:4 --------------------------------------------- |
| 134 | +38 | f"%.2%" // error |
| 135 | + | ^^^^^^^ |
| 136 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 137 | + | |
| 138 | + | longer explanation available when compiling with `-explain` |
| 139 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:39:4 --------------------------------------------- |
| 140 | +39 | f"%.2n" // error |
| 141 | + | ^^^^^^^ |
| 142 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 143 | + | |
| 144 | + | longer explanation available when compiling with `-explain` |
| 145 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:40:4 --------------------------------------------- |
| 146 | +40 | f"$f%.2a" // error |
| 147 | + | ^^^^^^^^^ |
| 148 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 149 | + | |
| 150 | + | longer explanation available when compiling with `-explain` |
| 151 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:45:4 --------------------------------------------- |
| 152 | +45 | f"%<s" // error |
| 153 | + | ^^^^^^ |
| 154 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 155 | + | |
| 156 | + | longer explanation available when compiling with `-explain` |
| 157 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:46:4 --------------------------------------------- |
| 158 | +46 | f"%<c" // error |
| 159 | + | ^^^^^^ |
| 160 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 161 | + | |
| 162 | + | longer explanation available when compiling with `-explain` |
| 163 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:47:4 --------------------------------------------- |
| 164 | +47 | f"%<tT" // error |
| 165 | + | ^^^^^^^ |
| 166 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 167 | + | |
| 168 | + | longer explanation available when compiling with `-explain` |
| 169 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:48:4 --------------------------------------------- |
| 170 | +48 | f"${8}%d ${9}%d %3$$d" // error |
| 171 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 172 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 173 | + | |
| 174 | + | longer explanation available when compiling with `-explain` |
| 175 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:53:4 --------------------------------------------- |
| 176 | +53 | f"${8}%d ${9}%1$$d" |
| 177 | + | ^^^^^^^^^^^^^^^^^^^ |
| 178 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 179 | + | |
| 180 | + | longer explanation available when compiling with `-explain` |
| 181 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:54:4 --------------------------------------------- |
| 182 | +54 | f"$s%s $s%s %1$$<s" |
| 183 | + | ^^^^^^^^^^^^^^^^^^^ |
| 184 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 185 | + | |
| 186 | + | longer explanation available when compiling with `-explain` |
| 187 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:63:4 --------------------------------------------- |
| 188 | +63 | f"$t%tG" // error |
| 189 | + | ^^^^^^^^ |
| 190 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 191 | + | |
| 192 | + | longer explanation available when compiling with `-explain` |
| 193 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:64:4 --------------------------------------------- |
| 194 | +64 | f"$t%t" // error |
| 195 | + | ^^^^^^^ |
| 196 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 197 | + | |
| 198 | + | longer explanation available when compiling with `-explain` |
| 199 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:69:4 --------------------------------------------- |
| 200 | +69 | f"${d}random-leading-junk%d" // error |
| 201 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 202 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 203 | + | |
| 204 | + | longer explanation available when compiling with `-explain` |
| 205 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:70:4 --------------------------------------------- |
| 206 | +70 | f"%1$$n" |
| 207 | + | ^^^^^^^^ |
| 208 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 209 | + | |
| 210 | + | longer explanation available when compiling with `-explain` |
| 211 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:71:4 --------------------------------------------- |
| 212 | +71 | f"%1$$d" // error |
| 213 | + | ^^^^^^^^ |
| 214 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 215 | + | |
| 216 | + | longer explanation available when compiling with `-explain` |
| 217 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:72:4 --------------------------------------------- |
| 218 | +72 | f"blablablabla %% %.2d" // error |
| 219 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 220 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 221 | + | |
| 222 | + | longer explanation available when compiling with `-explain` |
| 223 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:73:4 --------------------------------------------- |
| 224 | +73 | f"blablablabla %.2b %%" // error |
| 225 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 226 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 227 | + | |
| 228 | + | longer explanation available when compiling with `-explain` |
| 229 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:75:4 --------------------------------------------- |
| 230 | +75 | f"ana${3}%.2f%2${true}%bb" // error |
| 231 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 232 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 233 | + | |
| 234 | + | longer explanation available when compiling with `-explain` |
| 235 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:76:4 --------------------------------------------- |
| 236 | +76 | f"ac{2c{2{c.ca " |
| 237 | + | ^^^^^^^^^^^^^^^^ |
| 238 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 239 | + | |
| 240 | + | longer explanation available when compiling with `-explain` |
| 241 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:78:4 --------------------------------------------- |
| 242 | +78 | f"b%c.%2ii%iin" // error // error // error |
| 243 | + | ^^^^^^^^^^^^^^^ |
| 244 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 245 | + | |
| 246 | + | longer explanation available when compiling with `-explain` |
| 247 | +-- [E129] Potential Issue Warning: tests/neg/f-interpolator-neg.scala:79:4 --------------------------------------------- |
| 248 | +79 | f"b}22%2.c<{%{" // error // error |
| 249 | + | ^^^^^^^^^^^^^^^ |
| 250 | + | A pure expression does nothing in statement position; you may be omitting necessary parentheses |
| 251 | + | |
| 252 | + | longer explanation available when compiling with `-explain` |
1 | 253 | -- Error: tests/neg/f-interpolator-neg.scala:4:4 -----------------------------------------------------------------------
|
2 | 254 | 4 | new StringContext().f() // error
|
3 | 255 | | ^^^^^^^^^^^^^^^^^^^^^
|
|
134 | 386 | 49 | f"${8}%d ${9}%d%0$$d" // error
|
135 | 387 | | ^
|
136 | 388 | | Argument index out of range
|
137 |
| --- Warning: tests/neg/f-interpolator-neg.scala:54:17 ------------------------------------------------------------------- |
138 |
| -54 | f"$s%s $s%s %1$$<s" |
139 |
| - | ^ |
140 |
| - | Argument index ignored if '<' flag is present |
141 | 389 | -- Error: tests/neg/f-interpolator-neg.scala:59:7 ----------------------------------------------------------------------
|
142 | 390 | 59 | f"$s%#s" // error
|
143 | 391 | | ^
|
|
0 commit comments