diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-06-11 11:34:30 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-06-11 11:34:30 +0000 |
commit | d89ea1c9a5de945ca8f108bee8f174d6dcc2f7e8 (patch) | |
tree | 3e4535430d4096524f8bb1e879a8b0f470f8d681 /test/files/run | |
parent | 98596ff0aa4c97dca9264c7c13dd9c889b749ccf (diff) | |
download | scala-d89ea1c9a5de945ca8f108bee8f174d6dcc2f7e8.tar.gz scala-d89ea1c9a5de945ca8f108bee8f174d6dcc2f7e8.tar.bz2 scala-d89ea1c9a5de945ca8f108bee8f174d6dcc2f7e8.zip |
Moved pending tests that succeed to their place...
Moved pending tests that succeed to their place in the 'files'
directory.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t0005.check | 1 | ||||
-rw-r--r-- | test/files/run/t0005.scala | 47 | ||||
-rw-r--r-- | test/files/run/t0607.check | 2 | ||||
-rw-r--r-- | test/files/run/t0607.scala | 7 | ||||
-rw-r--r-- | test/files/run/t0663.check | 1 | ||||
-rw-r--r-- | test/files/run/t0663.scala | 6 |
6 files changed, 64 insertions, 0 deletions
diff --git a/test/files/run/t0005.check b/test/files/run/t0005.check new file mode 100644 index 0000000000..1e8b314962 --- /dev/null +++ b/test/files/run/t0005.check @@ -0,0 +1 @@ +6 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) + } +} + +*/ diff --git a/test/files/run/t0607.check b/test/files/run/t0607.check new file mode 100644 index 0000000000..a9057ea659 --- /dev/null +++ b/test/files/run/t0607.check @@ -0,0 +1,2 @@ +A() +B() diff --git a/test/files/run/t0607.scala b/test/files/run/t0607.scala new file mode 100644 index 0000000000..afc7ff9b46 --- /dev/null +++ b/test/files/run/t0607.scala @@ -0,0 +1,7 @@ +object Test extends Application { + case class A + case class B extends A + println(A()) + println(B()) +} + diff --git a/test/files/run/t0663.check b/test/files/run/t0663.check new file mode 100644 index 0000000000..22b68b7f57 --- /dev/null +++ b/test/files/run/t0663.check @@ -0,0 +1 @@ +<feed></feed> diff --git a/test/files/run/t0663.scala b/test/files/run/t0663.scala new file mode 100644 index 0000000000..16a5a48330 --- /dev/null +++ b/test/files/run/t0663.scala @@ -0,0 +1,6 @@ +object Test extends Application { + val src = scala.io.Source.fromString("<?xml version='1.0' encoding='UTF-8'?><feed/>") + val parser = xml.parsing.ConstructingParser.fromSource(src, true) + println(parser.document) +} + |