Skip to content

Commit f232d1c

Browse files
committed
Convert some neg flags files
1 parent 2511ef1 commit f232d1c

File tree

11 files changed

+32
-31
lines changed

11 files changed

+32
-31
lines changed

test/files/neg/aladdin1055.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Test_1.scala:2: warning: match may not be exhaustive.
1+
Test_1.scala:3: warning: match may not be exhaustive.
22
It would fail on the following input: (_ : this.<local child>)
33
def foo(t: A.T) = t match {
44
^

test/files/neg/aladdin1055.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/neg/aladdin1055/Test_1.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scalac: -Xfatal-warnings
12
object Test {
23
def foo(t: A.T) = t match {
34
case a: A.TT => 0

test/files/neg/t2458.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/neg/t2458/test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
// scalac: -Xsource:2.13
22
import q.X
33

44
package p {

test/files/neg/t4851.check

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
S.scala:2: warning: Adaptation of argument list by inserting () is deprecated: leaky (Object-receiving) target makes this especially dangerous.
1+
S.scala:4: warning: Adaptation of argument list by inserting () is deprecated: leaky (Object-receiving) target makes this especially dangerous.
22
signature: J(x: Any): J
33
given arguments: <none>
44
after adaptation: new J((): Unit)
55
val x1 = new J
66
^
7-
S.scala:3: warning: Adaptation of argument list by inserting () is deprecated: leaky (Object-receiving) target makes this especially dangerous.
7+
S.scala:5: warning: Adaptation of argument list by inserting () is deprecated: leaky (Object-receiving) target makes this especially dangerous.
88
signature: J(x: Any): J
99
given arguments: <none>
1010
after adaptation: new J((): Unit)
1111
val x2 = new J()
1212
^
13-
S.scala:4: warning: Adapting argument list by creating a 5-tuple: this may not be what you want.
13+
S.scala:6: warning: Adapting argument list by creating a 5-tuple: this may not be what you want.
1414
signature: J(x: Any): J
1515
given arguments: 1, 2, 3, 4, 5
1616
after adaptation: new J((1, 2, 3, 4, 5): (Int, Int, Int, Int, Int))
1717
val x3 = new J(1, 2, 3, 4, 5)
1818
^
19-
S.scala:6: warning: Adapting argument list by creating a 3-tuple: this may not be what you want.
19+
S.scala:8: warning: Adapting argument list by creating a 3-tuple: this may not be what you want.
2020
signature: Some.apply[A](value: A): Some[A]
2121
given arguments: 1, 2, 3
2222
after adaptation: Some((1, 2, 3): (Int, Int, Int))
2323
val y1 = Some(1, 2, 3)
2424
^
25-
S.scala:7: warning: Adapting argument list by creating a 3-tuple: this may not be what you want.
25+
S.scala:9: warning: Adapting argument list by creating a 3-tuple: this may not be what you want.
2626
signature: Some(value: A): Some[A]
2727
given arguments: 1, 2, 3
2828
after adaptation: new Some((1, 2, 3): (Int, Int, Int))
2929
val y2 = new Some(1, 2, 3)
3030
^
31-
S.scala:9: warning: Adaptation of argument list by inserting () is deprecated: this is unlikely to be what you want.
31+
S.scala:11: warning: Adaptation of argument list by inserting () is deprecated: this is unlikely to be what you want.
3232
signature: J2(x: T): J2[T]
3333
given arguments: <none>
3434
after adaptation: new J2((): Unit)
3535
val z1 = new J2
3636
^
37-
S.scala:10: warning: Adaptation of argument list by inserting () is deprecated: this is unlikely to be what you want.
37+
S.scala:12: warning: Adaptation of argument list by inserting () is deprecated: this is unlikely to be what you want.
3838
signature: J2(x: T): J2[T]
3939
given arguments: <none>
4040
after adaptation: new J2((): Unit)
4141
val z2 = new J2()
4242
^
43-
S.scala:14: warning: Adapting argument list by creating a 3-tuple: this may not be what you want.
43+
S.scala:16: warning: Adapting argument list by creating a 3-tuple: this may not be what you want.
4444
signature: Test.anyId(a: Any): Any
4545
given arguments: 1, 2, 3
4646
after adaptation: Test.anyId((1, 2, 3): (Int, Int, Int))

test/files/neg/t4851.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/neg/t4851/S.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// scalac: -Xlint:adapted-args -Xfatal-warnings -deprecation
2+
//
13
object Test {
24
val x1 = new J
35
val x2 = new J()

test/files/neg/warn-unused-imports.check

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
warn-unused-imports_2.scala:133: error: type mismatch;
1+
warn-unused-imports_2.scala:135: error: type mismatch;
22
found : Int(42)
33
required: Sample.X
44
f(42) // error
55
^
6-
warn-unused-imports_2.scala:57: warning: Unused import
6+
warn-unused-imports_2.scala:59: warning: Unused import
77
import p1.A // warn
88
^
9-
warn-unused-imports_2.scala:62: warning: Unused import
9+
warn-unused-imports_2.scala:64: warning: Unused import
1010
import p1.{ A, B } // warn on A
1111
^
12-
warn-unused-imports_2.scala:67: warning: Unused import
12+
warn-unused-imports_2.scala:69: warning: Unused import
1313
import p1.{ A, B } // warn on both
1414
^
15-
warn-unused-imports_2.scala:67: warning: Unused import
15+
warn-unused-imports_2.scala:69: warning: Unused import
1616
import p1.{ A, B } // warn on both
1717
^
18-
warn-unused-imports_2.scala:73: warning: Unused import
18+
warn-unused-imports_2.scala:75: warning: Unused import
1919
import c._ // warn
2020
^
21-
warn-unused-imports_2.scala:78: warning: Unused import
21+
warn-unused-imports_2.scala:80: warning: Unused import
2222
import p1._ // warn
2323
^
24-
warn-unused-imports_2.scala:85: warning: Unused import
24+
warn-unused-imports_2.scala:87: warning: Unused import
2525
import c._ // warn
2626
^
27-
warn-unused-imports_2.scala:91: warning: Unused import
27+
warn-unused-imports_2.scala:93: warning: Unused import
2828
import p1.c._ // warn
2929
^
30-
warn-unused-imports_2.scala:98: warning: Unused import
30+
warn-unused-imports_2.scala:100: warning: Unused import
3131
import p1._ // warn
3232
^
33-
warn-unused-imports_2.scala:118: warning: Unused import
33+
warn-unused-imports_2.scala:120: warning: Unused import
3434
import p1.A // warn
3535
^
36-
warn-unused-imports_2.scala:132: warning: Unused import
36+
warn-unused-imports_2.scala:134: warning: Unused import
3737
import Sample.Implicits._ // warn
3838
^
39-
warn-unused-imports_2.scala:143: warning: Unused import
39+
warn-unused-imports_2.scala:145: warning: Unused import
4040
import Sample.Implicits.useless // warn
4141
^
42-
warn-unused-imports_2.scala:147: warning: Unused import
42+
warn-unused-imports_2.scala:149: warning: Unused import
4343
import java.io.File // warn
4444
^
45-
warn-unused-imports_2.scala:148: warning: Unused import
45+
warn-unused-imports_2.scala:150: warning: Unused import
4646
import scala.concurrent.Future // warn
4747
^
48-
warn-unused-imports_2.scala:149: warning: Unused import
48+
warn-unused-imports_2.scala:151: warning: Unused import
4949
import scala.concurrent.ExecutionContext.Implicits.global // warn
5050
^
51-
warn-unused-imports_2.scala:150: warning: Unused import
51+
warn-unused-imports_2.scala:152: warning: Unused import
5252
import p1.A // warn
5353
^
5454
16 warnings found

test/files/neg/warn-unused-imports.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)