summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2014-11-10 13:16:23 +0100
committerLukas Rytz <lukas.rytz@typesafe.com>2014-11-10 13:16:23 +0100
commitfa060913caca2b46a2a894b35a53079eb33927c6 (patch)
tree7d86df28261c919e5961aa2569e7f190be647c47 /test/files/pos
parent2ac89cff4e3f3189604d0d4752fec2daf1819f7a (diff)
parent0cd801ae0d75b7024d899e0d4c15576184c571be (diff)
downloadscala-fa060913caca2b46a2a894b35a53079eb33927c6.tar.gz
scala-fa060913caca2b46a2a894b35a53079eb33927c6.tar.bz2
scala-fa060913caca2b46a2a894b35a53079eb33927c6.zip
Merge pull request #4108 from retronym/ticket/7750
SI-7750 Test case for fixed spurious existential feature warning
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t7750.flags1
-rw-r--r--test/files/pos/t7750.scala8
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t7750.flags b/test/files/pos/t7750.flags
new file mode 100644
index 0000000000..b216e74c97
--- /dev/null
+++ b/test/files/pos/t7750.flags
@@ -0,0 +1 @@
+-Xfatal-warnings -feature
diff --git a/test/files/pos/t7750.scala b/test/files/pos/t7750.scala
new file mode 100644
index 0000000000..befec76949
--- /dev/null
+++ b/test/files/pos/t7750.scala
@@ -0,0 +1,8 @@
+trait LazyCombiner[Elem, +To, Buff <: Growable[Elem] with Sizing]
+trait Growable[T]
+trait Sizing
+
+
+object Test {
+ null.isInstanceOf[LazyCombiner[_, _, _]] // issued an existential feature warning
+}