summaryrefslogtreecommitdiff
path: root/test/files/neg/hk-bad-bounds.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-13 02:08:24 +0000
committerPaul Phillips <paulp@improving.org>2011-07-13 02:08:24 +0000
commit360f747c67006bc281ab28af3565eb602ed68b7c (patch)
tree18d1df3e1b39923cfa756d7429cfb4cce696b0e5 /test/files/neg/hk-bad-bounds.scala
parent0fac26971e78fbe79b2ba5aaa87bde63816ac028 (diff)
downloadscala-360f747c67006bc281ab28af3565eb602ed68b7c.tar.gz
scala-360f747c67006bc281ab28af3565eb602ed68b7c.tar.bz2
scala-360f747c67006bc281ab28af3565eb602ed68b7c.zip
Suppressed an error in type constructor bounds ...
Suppressed an error in type constructor bounds checking which was obscuring the meaningful error to follow. Review by moors.
Diffstat (limited to 'test/files/neg/hk-bad-bounds.scala')
-rw-r--r--test/files/neg/hk-bad-bounds.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/hk-bad-bounds.scala b/test/files/neg/hk-bad-bounds.scala
new file mode 100644
index 0000000000..0ed0b4c385
--- /dev/null
+++ b/test/files/neg/hk-bad-bounds.scala
@@ -0,0 +1,5 @@
+import collection.generic.SeqFactory
+
+class A {
+ def f(x: Boolean) = if (x) (null: SeqFactory[List]) else (null: SeqFactory[Set])
+}