From 360f747c67006bc281ab28af3565eb602ed68b7c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 13 Jul 2011 02:08:24 +0000 Subject: 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. --- test/files/neg/hk-bad-bounds.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/neg/hk-bad-bounds.scala (limited to 'test/files/neg/hk-bad-bounds.scala') 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]) +} -- cgit v1.2.3