diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-09-04 08:22:41 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-09-04 08:22:41 +0000 |
commit | d65e4220320ecce840fb49a195b329cfa50f702d (patch) | |
tree | 530767959f30290300612fb94ae3cd3cf90347d8 /test/pending/run/t0005.scala | |
parent | 1828b005b05fbe0bcd8adfa0b4ad1f1ddb231fc8 (diff) | |
download | scala-d65e4220320ecce840fb49a195b329cfa50f702d.tar.gz scala-d65e4220320ecce840fb49a195b329cfa50f702d.tar.bz2 scala-d65e4220320ecce840fb49a195b329cfa50f702d.zip |
Renamed Trac bug reports according to the t####...
Renamed Trac bug reports according to the t#### convention
Diffstat (limited to 'test/pending/run/t0005.scala')
-rw-r--r-- | test/pending/run/t0005.scala | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/pending/run/t0005.scala b/test/pending/run/t0005.scala new file mode 100644 index 0000000000..9c86e8c559 --- /dev/null +++ b/test/pending/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) + } +} + +*/ |