Skip to content

Commit f2f3fee

Browse files
committed
more
1 parent 3e5558c commit f2f3fee

File tree

123 files changed

+159
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+159
-159
lines changed

tests/disabled/macro/pos/t8013/inpervolated_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings -Xlint
1+
//> using options -Werror -Xlint
22
package t8013
33

44
// unsuspecting user of perverse macro

tests/disabled/partest/neg/t5663-badwarneq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final case class ValueClass3(val value: Int) extends AnyVal
2424

2525
/* It's not possible to run partest without -deprecation.
2626
* Since detecting the warnings requires a neg test with
27-
* -Xfatal-warnings, and deprecation terminates the compile,
27+
* -Werror and deprecation terminates the compile,
2828
* we'll just comment out the nasty part. The point was
2929
* just to show there's nothing special about a trait
3030
* that extends a case class, which is only permitted

tests/explicit-nulls/neg-patmat/match-pat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings
1+
//> using options -Werror
22

33
class Foo {
44

tests/explicit-nulls/pos/match-pat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings
1+
//> using options -Werror
22

33
// Ensure we don't get "the type test for argType cannot be checked at runtime" warning
44

tests/explicit-nulls/pos/unsafe-match-null-pat.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings
1+
//> using options -Werror
22

33
import scala.language.unsafeNulls
44

tests/neg-custom-args/captures/capt-wf.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -language:experimental.captureChecking -Xfatal-warnings
1+
//> using options -language:experimental.captureChecking -Werror
22
import caps.cap
33
class C
44
type Cap = C^
@@ -35,4 +35,4 @@ def test(c: Cap, other: String): Unit =
3535
val y3: String^{ev} = ??? // error cs is empty
3636

3737
()
38-
// nopos-error: No warnings can be incurred under -Werror (or -Xfatal-warnings)
38+
// nopos-error: No warnings can be incurred under -Werror (or -Xfatal-warnings)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//> using options -source future -deprecation -Xfatal-warnings
1+
//> using options -source future -deprecation -Werror
22

33
object Test {
44
val xs: List[_] = List(1, 2, 3) // error
55
val ys: Map[_ <: AnyRef, _ >: Null] = Map() // error // error
6-
}
6+
}

tests/neg-deep-subtype/i17435.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings
1+
//> using options -Werror
22

33
import scala.collection.mutable
44

tests/neg-deep-subtype/i5495.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings
1+
//> using options -Werror
22

33
class A
44
class B

tests/neg-deep-subtype/i5826b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -Xfatal-warnings
1+
//> using options -Werror
22

33
class Foo {
44
def test1[A]: List[Int] | A => Int = {

0 commit comments

Comments
 (0)