summaryrefslogtreecommitdiff
path: root/test/pending/pos/t5399a.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-03 12:05:58 -0700
committerPaul Phillips <paulp@improving.org>2012-05-03 12:16:21 -0700
commit264cef8f9677c59395166da9be0af0bfe83abfa5 (patch)
tree41db0c14e6704edb9a06e92af0d4f6cd1c2f22bf /test/pending/pos/t5399a.scala
parent453d615fb3c6d0db3a0a43c9232bc12584e39107 (diff)
downloadscala-264cef8f9677c59395166da9be0af0bfe83abfa5.tar.gz
scala-264cef8f9677c59395166da9be0af0bfe83abfa5.tar.bz2
scala-264cef8f9677c59395166da9be0af0bfe83abfa5.zip
Test cases for SI-5472, SI-5399, SI-5685.
Diffstat (limited to 'test/pending/pos/t5399a.scala')
-rw-r--r--test/pending/pos/t5399a.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pending/pos/t5399a.scala b/test/pending/pos/t5399a.scala
new file mode 100644
index 0000000000..4ebd85ad03
--- /dev/null
+++ b/test/pending/pos/t5399a.scala
@@ -0,0 +1,19 @@
+class Foo {
+ trait Init[T]
+ class ScopedKey[T] extends Init[T]
+
+ trait Setting[T] {
+ val key: ScopedKey[T]
+ }
+
+ case class ScopedKey1[T](val foo: Init[T]) extends ScopedKey[T]
+
+ val scalaHome: Setting[Option[String]] = null
+ val scalaVersion: Setting[String] = null
+
+ def testPatternMatch(s: Setting[_]) {
+ s.key match {
+ case ScopedKey1(scalaHome.key | scalaVersion.key) => ()
+ }
+ }
+}