Skip to content

Commit 2660df6

Browse files
committed
Remove deprecation warnings from existing tests
1 parent 29d041d commit 2660df6

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

Diff for: compiler/test-resources/repl/i13208.scala

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
//> using options -source:future -deprecation
22
scala> type M[X] = X match { case Int => String case _ => Int }
3-
scala> type N[X] = X match { case List[_] => Int }
4-
1 warning found
5-
-- Deprecation Warning: --------------------------------------------------------
6-
1 | type N[X] = X match { case List[_] => Int }
7-
| ^
8-
| `_` is deprecated for wildcard arguments of types: use `?` instead
3+
scala> type N[X] = X match { case List[_] => Int }

Diff for: sbt-test/compilerReporter/i14576/Test.scala

-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ object Test:
1313
// private[this] and = _ are deprecated under -source:future
1414
private[this] var x: AnyRef = _
1515

16-
// under -source:future, `_` is deprecated for wildcard arguments of types: use `?` instead
1716
val xs: List[_] = Nil

Diff for: sbt-test/compilerReporter/i14576/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lazy val root = (project in file("."))
2424
},
2525
assertDeprecationSummary := {
2626
assert {
27-
FakePrintWriter.messages.exists(_.contains("there were 3 deprecation warnings; re-run with -deprecation for details"))
27+
FakePrintWriter.messages.exists(_.contains("there were 2 deprecation warnings; re-run with -deprecation for details"))
2828
}
2929
},
3030
assertNoDeprecationSummary := {

0 commit comments

Comments
 (0)