diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-03 12:05:58 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-03 12:16:21 -0700 |
commit | 264cef8f9677c59395166da9be0af0bfe83abfa5 (patch) | |
tree | 41db0c14e6704edb9a06e92af0d4f6cd1c2f22bf /test/pending/pos/t5399a.scala | |
parent | 453d615fb3c6d0db3a0a43c9232bc12584e39107 (diff) | |
download | scala-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.scala | 19 |
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) => () + } + } +} |