File tree 3 files changed +2
-8
lines changed
compiler/test-resources/repl
sbt-test/compilerReporter/i14576
3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
//> using options -source:future -deprecation
2
2
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 }
Original file line number Diff line number Diff line change @@ -13,5 +13,4 @@ object Test:
13
13
// private[this] and = _ are deprecated under -source:future
14
14
private [this ] var x : AnyRef = _
15
15
16
- // under -source:future, `_` is deprecated for wildcard arguments of types: use `?` instead
17
16
val xs : List [_] = Nil
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ lazy val root = (project in file("."))
24
24
},
25
25
assertDeprecationSummary := {
26
26
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" ))
28
28
}
29
29
},
30
30
assertNoDeprecationSummary := {
You can’t perform that action at this time.
0 commit comments