summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/t0756.scala8
-rw-r--r--test/pending/pos/t0774/unrelated.scala9
-rw-r--r--test/pending/pos/t0805.scala9
-rwxr-xr-xtest/pending/run/t0508x.scala21
-rw-r--r--test/pending/run/t0818.scala4
5 files changed, 51 insertions, 0 deletions
diff --git a/test/pending/pos/t0756.scala b/test/pending/pos/t0756.scala
new file mode 100644
index 0000000000..a778bd63d0
--- /dev/null
+++ b/test/pending/pos/t0756.scala
@@ -0,0 +1,8 @@
+object Test {
+ for {
+ n <- Some(42)
+
+ _
+ m <- Some(24)
+ } yield n
+}
diff --git a/test/pending/pos/t0774/unrelated.scala b/test/pending/pos/t0774/unrelated.scala
new file mode 100644
index 0000000000..1efdb2505e
--- /dev/null
+++ b/test/pending/pos/t0774/unrelated.scala
@@ -0,0 +1,9 @@
+object Outer {
+ import Inner._
+
+ deathname
+
+ object Inner {
+ def deathname: Int = 1
+ }
+}
diff --git a/test/pending/pos/t0805.scala b/test/pending/pos/t0805.scala
new file mode 100644
index 0000000000..565a2a6527
--- /dev/null
+++ b/test/pending/pos/t0805.scala
@@ -0,0 +1,9 @@
+package fr.up5.mi.noel.scala
+object Test {
+ def make(t: Test) : Test = TestList(t.args.toList)
+}
+case class TestList[T](elements: List[T])(implicit f: T => Test)
+
+class Test {
+ val args: Array[Test]
+}
diff --git a/test/pending/run/t0508x.scala b/test/pending/run/t0508x.scala
new file mode 100755
index 0000000000..0c1ffde3ed
--- /dev/null
+++ b/test/pending/run/t0508x.scala
@@ -0,0 +1,21 @@
+ final object Test extends java.lang.Object with Application {
+
+ class Foo(val s: String, val n: Int) extends java.lang.Object {
+ };
+
+ def foo[A >: Nothing <: Any, B >: Nothing <: Any, C >: Nothing <: Any]
+ (unapply1: (A) => Option[(B, C)], v: A): Unit =
+ unapply1.apply(v) match {
+ case Some((fst @ _, snd @ _)) =>
+ scala.Predef.println(scala.Tuple2.apply[java.lang.String, java.lang.String]("first: ".+(fst), " second: ".+(snd)))
+ case _ => scala.Predef.println(":(")
+ }
+ Test.this.foo[Test.Foo, String, Int]({
+ ((eta$0$1: Test.Foo) => Test.this.Foo.unapply(eta$0$1))
+ }, Test.this.Foo.apply("this might be fun", 10));
+ final object Foo extends java.lang.Object with ((String, Int) => Test.Foo) {
+ def unapply(x$0: Test.Foo): Some[(String, Int)] = scala.Some.apply[(String, Int)](scala.Tuple2.apply[String, Int](x$0.s, x$0.n));
+ def apply(s: String, n: Int): Test.Foo = new Test.this.Foo(s, n)
+ }
+ }
+
diff --git a/test/pending/run/t0818.scala b/test/pending/run/t0818.scala
new file mode 100644
index 0000000000..677b85d920
--- /dev/null
+++ b/test/pending/run/t0818.scala
@@ -0,0 +1,4 @@
+object Seth extends Application {
+ println(
+ new java.util.ArrayList[String]().toArray(Array[String]()))
+}