diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-10-18 07:13:17 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-10-18 07:13:17 -0700 |
commit | 5b2c4644a23ffbe1c45df40bf3511aee71eb0fe2 (patch) | |
tree | 92c4e81c74df149818162a7d3a77101128e0560c /test/files/neg/t7783.scala | |
parent | 2af071df1bdbb398e642e333823775c1e406c9be (diff) | |
parent | cd0f48c9567e9e52378c9c4c9b28e892bb2461a9 (diff) | |
download | scala-5b2c4644a23ffbe1c45df40bf3511aee71eb0fe2.tar.gz scala-5b2c4644a23ffbe1c45df40bf3511aee71eb0fe2.tar.bz2 scala-5b2c4644a23ffbe1c45df40bf3511aee71eb0fe2.zip |
Merge pull request #3041 from gkossakowski/merge-2.10.x
Merge 2.10.x into master
Diffstat (limited to 'test/files/neg/t7783.scala')
-rw-r--r-- | test/files/neg/t7783.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t7783.scala b/test/files/neg/t7783.scala new file mode 100644 index 0000000000..995b644a09 --- /dev/null +++ b/test/files/neg/t7783.scala @@ -0,0 +1,15 @@ +object O { class C; @deprecated("", "") type D = C; def foo: Seq[D] = Nil } + +object NoWarn { + O.foo // nowarn + O.foo +: Nil // nowarn + def bar(a: Any, b: Any) = () // nowarn + bar(b = O.foo, a = ()) // nowarn +} + +object Warn { + type T = O.D + locally(null: O.D) + val x: O.D = null + locally(null.asInstanceOf[O.D]) +} |