From d89ea1c9a5de945ca8f108bee8f174d6dcc2f7e8 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Wed, 11 Jun 2008 11:34:30 +0000 Subject: Moved pending tests that succeed to their place... Moved pending tests that succeed to their place in the 'files' directory. --- test/files/run/t0005.scala | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 test/files/run/t0005.scala (limited to 'test/files/run/t0005.scala') diff --git a/test/files/run/t0005.scala b/test/files/run/t0005.scala new file mode 100644 index 0000000000..9c86e8c559 --- /dev/null +++ b/test/files/run/t0005.scala @@ -0,0 +1,47 @@ +object A1 { + object A2 { + class X { def unapply(v : Int) = Some(v + 1) } + } +} + +object B1 { + object B2 { + val q = new A1.A2.X + } +} + +object Test { + def main(args: Array[String]) { + import B1.B2.q + val res = 5 match { case q(x) => x } + println(res) + } +} + + + +/* +compiler crash: + +object A1 { + object A2 { + class X { def unapply(v : Int) = Some(v + 1) } + } +} + +object B1 { + object B2 { + val q = new A1.A2.X + } +} + +object C { + def main(args: Array[String]) { + //import B1.B2.q + val q = new A1.A2.X + val res = 5 match { case q(x) => x } + println(res) + } +} + +*/ -- cgit v1.2.3