Skip to content

Commit dd8d03a

Browse files
committed
Add test
1 parent 717fec4 commit dd8d03a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)