diff options
author | Paul Phillips <paulp@improving.org> | 2013-01-10 22:47:33 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-01-10 22:47:33 -0800 |
commit | ecea3fc58338f8d4d4bab0f56e2101dbf2a9c0ed (patch) | |
tree | e1d9ec4cb71546474ed0064dd7a6cfa9268d5b05 /test/pending | |
parent | 5abadf0aebee68c9ba6a168355d5817f8a99d7e9 (diff) | |
parent | 03caf40523cc768c87080e141993ccfe5df7f57f (diff) | |
download | scala-ecea3fc58338f8d4d4bab0f56e2101dbf2a9c0ed.tar.gz scala-ecea3fc58338f8d4d4bab0f56e2101dbf2a9c0ed.tar.bz2 scala-ecea3fc58338f8d4d4bab0f56e2101dbf2a9c0ed.zip |
Merge pull request #1873 from paulp/pr/variance-bonanza
a painstaking examination of Variance
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/neg/t5378.scala | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/pending/neg/t5378.scala b/test/pending/neg/t5378.scala deleted file mode 100644 index cada29b0a0..0000000000 --- a/test/pending/neg/t5378.scala +++ /dev/null @@ -1,19 +0,0 @@ -import language.reflectiveCalls - -class Coll[+T] { - def contains = new { def apply[T1 <: T](value: T1) = ??? } -} - -object Test { - def main(args: Array[String]): Unit = { - val xs = new Coll[List[String]] - val ys: Coll[Traversable[String]] = xs - - println(ys contains Nil) - // java.lang.NoSuchMethodException: Coll$$anon$1.apply(scala.collection.Traversable) - // at java.lang.Class.getMethod(Class.java:1605) - // at Test$.reflMethod$Method1(a.scala:14) - // at Test$.main(a.scala:14) - // at Test.main(a.scala) - } -} |