Skip to content

Commit 4fa0c39

Browse files
committed
Update checkfiles
1 parent aca73db commit 4fa0c39

9 files changed

+281
-17
lines changed

tests/neg/constructor-proxy-shadowing.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
17 |val x = Seq(3) // error: shadowing
5353
| ^^^
5454
| Reference to constructor proxy for class Seq
55-
| shadows outer reference to getter Seq in package scala
55+
| shadows outer reference to value Seq in package scala
5656
|
5757
| The instance needs to be created with an explicit `new`.
5858
|--------------------------------------------------------------------------------------------------------------------
@@ -66,7 +66,7 @@
6666
|
6767
| new Seq(...)
6868
|
69-
| Or it could mean calling the apply method of getter Seq in package scala as in
69+
| Or it could mean calling the apply method of value Seq in package scala as in
7070
|
7171
| Seq.apply(...)
7272
|

tests/neg/f-interpolator-neg.check

Lines changed: 252 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,255 @@
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`
1253
-- Error: tests/neg/f-interpolator-neg.scala:4:4 -----------------------------------------------------------------------
2254
4 | new StringContext().f() // error
3255
| ^^^^^^^^^^^^^^^^^^^^^
@@ -134,10 +386,6 @@
134386
49 | f"${8}%d ${9}%d%0$$d" // error
135387
| ^
136388
| 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
141389
-- Error: tests/neg/f-interpolator-neg.scala:59:7 ----------------------------------------------------------------------
142390
59 | f"$s%#s" // error
143391
| ^

tests/neg/i16601.check

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
-- [E129] Potential Issue Warning: tests/neg/i16601.scala:1:23 ---------------------------------------------------------
2+
1 |@main def Test: Unit = new concurrent.ExecutionContext // 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`
17
-- [E042] Type Error: tests/neg/i16601.scala:1:27 ----------------------------------------------------------------------
28
1 |@main def Test: Unit = new concurrent.ExecutionContext // error
39
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/neg/i16601a.check

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
-- [E129] Potential Issue Warning: tests/neg/i16601a.scala:3:23 --------------------------------------------------------
2+
3 |@main def Test: Unit = new concurrent.ExecutionContext // error
3+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
| A pure expression does nothing in statement position; you may be omitting necessary parentheses
5+
|---------------------------------------------------------------------------------------------------------------------
6+
| Explanation (enabled by `-explain`)
7+
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
8+
| The pure expression new concurrent.ExecutionContext() doesn't have any side effect and its result is not assigned elsewhere.
9+
| It can be removed without changing the semantics of the program. This may indicate an error.
10+
---------------------------------------------------------------------------------------------------------------------
111
-- [E042] Type Error: tests/neg/i16601a.scala:3:27 ---------------------------------------------------------------------
212
3 |@main def Test: Unit = new concurrent.ExecutionContext // error
313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/neg/i8752.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
-- Error: tests/neg/i8752.scala:3:39 -----------------------------------------------------------------------------------
99
3 |trait Arround1[C <:[X]=>>IterableOps[X,C,C[X]] ] // error // error
1010
| ^
11-
| Type argument C does not have the same kind as its bound [_$$1]
11+
| Type argument C does not have the same kind as its bound [_$1]

tests/run-macros/tasty-extractors-1.check

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Inlined(None, Nil, Literal(StringConstant("abc")))
1717
ConstantType(StringConstant("abc"))
1818

1919
Inlined(None, Nil, Apply(Ident("println"), List(Literal(StringConstant("abc")))))
20-
TypeRef(ThisType(TypeRef(NoPrefix(), "scala")), "Unit")
20+
TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "<root>")), "scala"), "Unit")
2121

2222
Inlined(None, Nil, Typed(Literal(IntConstant(8)), TypeIdent("Int")))
2323
TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "<root>")), "scala"), "Int")
@@ -80,10 +80,10 @@ Inlined(None, Nil, Apply(Select(New(TypeIdent("Object")), "<init>"), Nil))
8080
TypeRef(ThisType(TypeRef(NoPrefix(), "lang")), "Object")
8181

8282
Inlined(None, Nil, Apply(Select(Ident("Int"), "box"), List(NamedArg("x", Literal(IntConstant(9))))))
83-
TypeRef(ThisType(TypeRef(NoPrefix(), "lang")), "Integer")
83+
TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix(), "<root>")), "java"), "lang"), "Integer")
8484

8585
Inlined(None, Nil, Apply(TypeApply(Select(Ident("Ordering"), "apply"), List(TypeIdent("Int"))), List(Ident("Int"))))
86-
AppliedType(TypeRef(ThisType(TypeRef(NoPrefix(), "math")), "Ordering"), List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "<root>")), "scala"), "Int")))
86+
AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "scala")), "math"), "Ordering"), List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix(), "<root>")), "scala"), "Int")))
8787

8888
Inlined(None, Nil, Block(List(ValDef("a", TypeIdent("Int"), Some(Literal(IntConstant(3))))), Literal(UnitConstant())))
8989
TypeRef(ThisType(TypeRef(NoPrefix(), "scala")), "Unit")

0 commit comments

Comments
 (0)