summaryrefslogtreecommitdiff
path: root/test/files/pos/t5399a.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-04 23:12:26 -0700
committerPaul Phillips <paulp@improving.org>2012-10-04 23:12:26 -0700
commit59d869f51aa555b03c13032a5d975d4e8e23bf8e (patch)
tree08c31ce50ecbfaa9fffeaf0f9a200cfa50e42b5c /test/files/pos/t5399a.scala
parent5e1cbba30766bd66e696175d08a013f74bcd0aff (diff)
parent5240da5073168424db50b969c1bbf7089d0a4242 (diff)
downloadscala-59d869f51aa555b03c13032a5d975d4e8e23bf8e.tar.gz
scala-59d869f51aa555b03c13032a5d975d4e8e23bf8e.tar.bz2
scala-59d869f51aa555b03c13032a5d975d4e8e23bf8e.zip
Merge pull request #1467 from paulp/passing-tests
Move tests out of pending.
Diffstat (limited to 'test/files/pos/t5399a.scala')
-rw-r--r--test/files/pos/t5399a.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/pos/t5399a.scala b/test/files/pos/t5399a.scala
new file mode 100644
index 0000000000..4ebd85ad03
--- /dev/null
+++ b/test/files/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) => ()
+ }
+ }
+}