We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717fec4 commit dd8d03aCopy full SHA for dd8d03a
tests/neg-custom-args/conditionalWarnings.scala
@@ -0,0 +1,14 @@
1
+
2
+// run with -deprecation -Xfatal-warnings
3
+object Test {
4
+ @deprecated def foo = ???
5
6
+ implied for Conversion[String, Int] = _.length
7
8
+ foo // error
9
10
+ val x: Int = "abc"
11
+ // OK, since -feature warnings are not enabled.
12
+ // The program compiles with final line
13
+ // there were 1 feature warning(s); re-run with -feature for details
14
+}
0 commit comments