diff options
author | Paul Phillips <paulp@improving.org> | 2014-03-12 10:54:51 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2014-03-12 11:25:51 -0700 |
commit | 80fc8b7818205634caa3996b18b2fd156e9aabd8 (patch) | |
tree | c192604820fcb46886645ece9ca8e4b4c5496dc1 /test/files/neg/t8265.check | |
parent | 9c38e86a5526887f93a3f031b19a0e4fa31745d3 (diff) | |
download | scala-80fc8b7818205634caa3996b18b2fd156e9aabd8.tar.gz scala-80fc8b7818205634caa3996b18b2fd156e9aabd8.tar.bz2 scala-80fc8b7818205634caa3996b18b2fd156e9aabd8.zip |
SI-8265 Restore 2.10 variance behavior under -Xsource:2.10
Issue deprecation warning under -Xsource:2.10 so time
travelers can have an authentic deprecation experience before
finding that their unsound code no longer compiles in 2.11.
The relevant ticket to the soundness issue is SI-6566.
Diffstat (limited to 'test/files/neg/t8265.check')
-rw-r--r-- | test/files/neg/t8265.check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8265.check b/test/files/neg/t8265.check new file mode 100644 index 0000000000..7b1db1c4e5 --- /dev/null +++ b/test/files/neg/t8265.check @@ -0,0 +1,6 @@ +t8265.scala:1: warning: Construct depends on unsound variance analysis and will not compile in scala 2.11 and beyond +class Foo[+CC[X]] { type Coll = CC[_] } + ^ +error: No warnings can be incurred under -Xfatal-warnings. +one warning found +one error found |