diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-16 18:39:36 +0100 |
---|---|---|
committer | Tobias Schlatter <tobias@meisch.ch> | 2014-03-21 11:24:03 +0100 |
commit | 6436fa67e561442ef2e2d9b99852a50f323ccacc (patch) | |
tree | 9063ea5a0df1f01fb69ef64dcf0ef638e63f54e2 /tests/untried | |
parent | 6f1ef32d728320c31cc59daad0f4849c9cd0a87c (diff) | |
download | dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.tar.gz dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.tar.bz2 dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.zip |
More tests
Added more tests which all pass, except for tests in disabled and pending.
t0694 went from pos to neg, because the kind of alias type used in t0695 is no longer supported.
Diffstat (limited to 'tests/untried')
-rw-r--r-- | tests/untried/pos/t0586.scala | 9 | ||||
-rw-r--r-- | tests/untried/pos/t0599.scala | 18 | ||||
-rw-r--r-- | tests/untried/pos/t0625.scala | 8 | ||||
-rw-r--r-- | tests/untried/pos/t0644.scala | 12 | ||||
-rw-r--r-- | tests/untried/pos/t0654.scala | 5 | ||||
-rw-r--r-- | tests/untried/pos/t0674.scala | 48 |
6 files changed, 0 insertions, 100 deletions
diff --git a/tests/untried/pos/t0586.scala b/tests/untried/pos/t0586.scala deleted file mode 100644 index 540e225a1..000000000 --- a/tests/untried/pos/t0586.scala +++ /dev/null @@ -1,9 +0,0 @@ -object RClose { - type ReflectCloseable = { def close(): Unit } - def withReflectCloseable[T <: ReflectCloseable, R](s: T)(action: T => R): R = - try { - action(s) - } finally { - s.close() - } -} diff --git a/tests/untried/pos/t0599.scala b/tests/untried/pos/t0599.scala deleted file mode 100644 index 885159af6..000000000 --- a/tests/untried/pos/t0599.scala +++ /dev/null @@ -1,18 +0,0 @@ -abstract class FooA { - type A <: Ax; - abstract class Ax; - abstract class InnerA { - type B <: A; - def doB : B; - } - } - trait FooB extends FooA { - type A <: Ax; - trait Ax extends super.Ax { def xxx : Int; } - abstract class InnerB extends InnerA { - // type B <: A; - val a : A = doB; - a.xxx; - doB.xxx; - } - } diff --git a/tests/untried/pos/t0625.scala b/tests/untried/pos/t0625.scala deleted file mode 100644 index 561454259..000000000 --- a/tests/untried/pos/t0625.scala +++ /dev/null @@ -1,8 +0,0 @@ -object Test { - def idMap[C[_],T](m: { def map[U](f: T => U): C[U] }): C[T] = m.map(t => t) - - def main(args: Array[String]): Unit = { - idMap(Some(5)) - idMap(Responder.constant(5)) - } -} diff --git a/tests/untried/pos/t0644.scala b/tests/untried/pos/t0644.scala deleted file mode 100644 index e51ec7df5..000000000 --- a/tests/untried/pos/t0644.scala +++ /dev/null @@ -1,12 +0,0 @@ -class A { - def apply(): Int = 0 - def update(n: Int): Unit = {} -} - -class B extends A { - this() - this()=1 - // 644 is wontfix so this is what should work. - super.apply() - super.update(1) -} diff --git a/tests/untried/pos/t0654.scala b/tests/untried/pos/t0654.scala deleted file mode 100644 index 07b4e7279..000000000 --- a/tests/untried/pos/t0654.scala +++ /dev/null @@ -1,5 +0,0 @@ -object Test { - class Foo[T] - type C[T] = Foo[_ <: T] - val a: C[AnyRef] = new Foo[AnyRef] -} diff --git a/tests/untried/pos/t0674.scala b/tests/untried/pos/t0674.scala deleted file mode 100644 index 589eeec9f..000000000 --- a/tests/untried/pos/t0674.scala +++ /dev/null @@ -1,48 +0,0 @@ -object Test extends App { -println( -for(a <- Some(1); - b <- Some(2); - c <- Some(3); - d <- Some(4); - e <- Some(5); - f <- Some(6); - g <- Some(7); - h <- Some(8); - i <- Some(9); - j <- Some(10); - k <- Some(11); - l <- Some(12); - m <- Some(13); - n <- Some(14); - o <- Some(15); - p <- Some(16); - q <- Some(17); - r <- Some(18); - s <- Some(19); - d <- Some(4); - e <- Some(5); - f <- Some(6); - g <- Some(7); - h <- Some(8); - i <- Some(9); - j <- Some(10); - k <- Some(11); - l <- Some(12); - m <- Some(13); - n <- Some(14); - o <- Some(15); - p <- Some(16); - q <- Some(17); - r <- Some(18); - s <- Some(19); - k <- Some(11); - l <- Some(12); - m <- Some(13); - n <- Some(14); - o <- Some(15) -// p <- Some(16); -// q <- Some(17) -// r <- Some(18); -// s <- Some(19) - ) yield a) -} |