diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-11-10 13:16:23 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-11-10 13:16:23 +0100 |
commit | fa060913caca2b46a2a894b35a53079eb33927c6 (patch) | |
tree | 7d86df28261c919e5961aa2569e7f190be647c47 /test | |
parent | 2ac89cff4e3f3189604d0d4752fec2daf1819f7a (diff) | |
parent | 0cd801ae0d75b7024d899e0d4c15576184c571be (diff) | |
download | scala-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')
-rw-r--r-- | test/files/pos/t7750.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t7750.scala | 8 |
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 +} |