summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-31 01:49:32 -0800
committerPaul Phillips <paulp@improving.org>2012-12-31 03:04:46 -0800
commit340529410696da2e5110d49a5a8d19572bf272ba (patch)
treef83d97c1154486c5205e15fc85282ed1fa3593a5 /test/files
parentca98602e8243062c8e1e86afe954c48edc09cbad (diff)
downloadscala-340529410696da2e5110d49a5a8d19572bf272ba.tar.gz
scala-340529410696da2e5110d49a5a8d19572bf272ba.tar.bz2
scala-340529410696da2e5110d49a5a8d19572bf272ba.zip
SI-6897, lubs and varargs star.
Don't allow lubs to calculate refinement types which contain a varargs star outside of legal varargs star position.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t6897.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t6897.scala b/test/files/pos/t6897.scala
new file mode 100644
index 0000000000..a7a03a1d3a
--- /dev/null
+++ b/test/files/pos/t6897.scala
@@ -0,0 +1,6 @@
+class A {
+ val html = (null: Any) match {
+ case 1 => <xml:group></xml:group>
+ case 2 => <p></p>
+ }
+}