summaryrefslogtreecommitdiff
path: root/test/files/run/t0048.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-04 06:22:31 +0000
committerPaul Phillips <paulp@improving.org>2010-10-04 06:22:31 +0000
commitc901a0675711a92ff714cfc909013a67a88c0ca3 (patch)
tree01e73b483cf3e372a0d7be0dab7edf7f2086b1d7 /test/files/run/t0048.scala
parenta7fd7d6dc257e396cf2cf22a9e0a60c3ce44a992 (diff)
downloadscala-c901a0675711a92ff714cfc909013a67a88c0ca3.tar.gz
scala-c901a0675711a92ff714cfc909013a67a88c0ca3.tar.bz2
scala-c901a0675711a92ff714cfc909013a67a88c0ca3.zip
Another batch of busywork shuffling the content...
Another batch of busywork shuffling the contents of pending around. Can almost see some daylight. No review.
Diffstat (limited to 'test/files/run/t0048.scala')
-rw-r--r--test/files/run/t0048.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t0048.scala b/test/files/run/t0048.scala
new file mode 100644
index 0000000000..9ee3453cd9
--- /dev/null
+++ b/test/files/run/t0048.scala
@@ -0,0 +1,13 @@
+object A1 {
+ object A2 {
+ class X { def unapply(v : Int) = Some(v + 1) }
+ }
+}
+
+object Test {
+ def main(args: Array[String]) {
+ val q = new A1.A2.X
+ val res = 5 match { case q(x) => x }
+ println(res)
+ }
+}