aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-03-19 18:00:14 +0100
committerTobias Schlatter <tobias@meisch.ch>2014-03-21 11:28:30 +0100
commit0dda8a1858c162f74f76a1d4dae158e99a250267 (patch)
tree4d31f10282c990570e2eda5d6c1692150e0949ac /tests/untried/pos
parentd6df293d2120f2247198cb6646a23c338f7dcbbf (diff)
downloaddotty-0dda8a1858c162f74f76a1d4dae158e99a250267.tar.gz
dotty-0dda8a1858c162f74f76a1d4dae158e99a250267.tar.bz2
dotty-0dda8a1858c162f74f76a1d4dae158e99a250267.zip
More tests, currently disabled
Mostly Java interop tests which are not yet supported. The test infrastructure for Java ocmpilation and the java parser from Scala are still missing.
Diffstat (limited to 'tests/untried/pos')
-rw-r--r--tests/untried/pos/t1029/Test_1.scala7
-rw-r--r--tests/untried/pos/t1029/Test_2.scala3
-rw-r--r--tests/untried/pos/t1101/J.java1
-rw-r--r--tests/untried/pos/t1101/S.scala1
-rw-r--r--tests/untried/pos/t1102/J.java4
-rw-r--r--tests/untried/pos/t1102/S.scala1
-rw-r--r--tests/untried/pos/t1107b/O.scala13
-rw-r--r--tests/untried/pos/t1107b/T.scala7
-rw-r--r--tests/untried/pos/t1150/J.java4
-rw-r--r--tests/untried/pos/t1150/S.scala4
-rw-r--r--tests/untried/pos/t1152/J.java1
-rw-r--r--tests/untried/pos/t1152/S.scala2
-rw-r--r--tests/untried/pos/t1176/J.java4
-rw-r--r--tests/untried/pos/t1176/S.scala1
-rw-r--r--tests/untried/pos/t1186/t1186.java8
-rw-r--r--tests/untried/pos/t1196/J.java1
-rw-r--r--tests/untried/pos/t1196/S.scala1
-rw-r--r--tests/untried/pos/t1197/J.java2
-rw-r--r--tests/untried/pos/t1197/S.scala2
-rw-r--r--tests/untried/pos/t1203b/J.java1
-rw-r--r--tests/untried/pos/t1203b/S.scala1
-rw-r--r--tests/untried/pos/t1230/J.java1
-rw-r--r--tests/untried/pos/t1230/S.scala1
-rw-r--r--tests/untried/pos/t1231/J.java1
-rw-r--r--tests/untried/pos/t1231/S.scala1
-rw-r--r--tests/untried/pos/t1232/J.java2
-rw-r--r--tests/untried/pos/t1232/J2.java2
-rw-r--r--tests/untried/pos/t1232/S.scala2
-rw-r--r--tests/untried/pos/t1235/Test.java9
-rw-r--r--tests/untried/pos/t1254/t1254.java28
-rw-r--r--tests/untried/pos/t1263/Test.java17
-rw-r--r--tests/untried/pos/t1263/test.scala10
32 files changed, 0 insertions, 143 deletions
diff --git a/tests/untried/pos/t1029/Test_1.scala b/tests/untried/pos/t1029/Test_1.scala
deleted file mode 100644
index d268c7142..000000000
--- a/tests/untried/pos/t1029/Test_1.scala
+++ /dev/null
@@ -1,7 +0,0 @@
-class ann(a: Array[Int]) extends annotation.StaticAnnotation
-
-object Test1 {
- // bug #1029
- @ann(Array(10, 2)) def u = ()
- val v: String @ann(Array(13, 2)) = "-1"
-}
diff --git a/tests/untried/pos/t1029/Test_2.scala b/tests/untried/pos/t1029/Test_2.scala
deleted file mode 100644
index 00589052c..000000000
--- a/tests/untried/pos/t1029/Test_2.scala
+++ /dev/null
@@ -1,3 +0,0 @@
-object Test {
- val t = Test1
-}
diff --git a/tests/untried/pos/t1101/J.java b/tests/untried/pos/t1101/J.java
deleted file mode 100644
index 2bc1d53e0..000000000
--- a/tests/untried/pos/t1101/J.java
+++ /dev/null
@@ -1 +0,0 @@
-class J { enum E { E1 } }
diff --git a/tests/untried/pos/t1101/S.scala b/tests/untried/pos/t1101/S.scala
deleted file mode 100644
index af7a591e5..000000000
--- a/tests/untried/pos/t1101/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-class S { val x: J.E = null; System.out.println(J.E.E1) }
diff --git a/tests/untried/pos/t1102/J.java b/tests/untried/pos/t1102/J.java
deleted file mode 100644
index 530102b91..000000000
--- a/tests/untried/pos/t1102/J.java
+++ /dev/null
@@ -1,4 +0,0 @@
-class J {
- enum E { E1 }
- void foo(E e) { }
-}
diff --git a/tests/untried/pos/t1102/S.scala b/tests/untried/pos/t1102/S.scala
deleted file mode 100644
index 9beee8d90..000000000
--- a/tests/untried/pos/t1102/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-class S(j:J) { j.foo(J.E.E1) }
diff --git a/tests/untried/pos/t1107b/O.scala b/tests/untried/pos/t1107b/O.scala
deleted file mode 100644
index 019886770..000000000
--- a/tests/untried/pos/t1107b/O.scala
+++ /dev/null
@@ -1,13 +0,0 @@
-object O
-{
- def d(t: Top) = t match {
- case s: Sub => true
- case _ => false
- }
-
- def main(args: Array[String]): Unit = {
- val c = new AnyRef with C
-
- c.bob.toString + c.bob2.toString
- }
-}
diff --git a/tests/untried/pos/t1107b/T.scala b/tests/untried/pos/t1107b/T.scala
deleted file mode 100644
index 0dff0b94f..000000000
--- a/tests/untried/pos/t1107b/T.scala
+++ /dev/null
@@ -1,7 +0,0 @@
-sealed trait Top
-sealed trait Sub extends Top
-trait C {
- private object P extends Sub
- def bob() = P.getClass
- def bob2() = O.d(P)
-}
diff --git a/tests/untried/pos/t1150/J.java b/tests/untried/pos/t1150/J.java
deleted file mode 100644
index 68fa04a17..000000000
--- a/tests/untried/pos/t1150/J.java
+++ /dev/null
@@ -1,4 +0,0 @@
-class J {
- static void bbb (Boolean b) { }
- static void ddd (Double d) { }
-}
diff --git a/tests/untried/pos/t1150/S.scala b/tests/untried/pos/t1150/S.scala
deleted file mode 100644
index 41dd06403..000000000
--- a/tests/untried/pos/t1150/S.scala
+++ /dev/null
@@ -1,4 +0,0 @@
-object S {
- J.bbb(new java.lang.Boolean(true))
- J.ddd(new java.lang.Double(0))
-}
diff --git a/tests/untried/pos/t1152/J.java b/tests/untried/pos/t1152/J.java
deleted file mode 100644
index 6e562e573..000000000
--- a/tests/untried/pos/t1152/J.java
+++ /dev/null
@@ -1 +0,0 @@
-class J { java.util.List<String> k = null; }
diff --git a/tests/untried/pos/t1152/S.scala b/tests/untried/pos/t1152/S.scala
deleted file mode 100644
index 7f751c509..000000000
--- a/tests/untried/pos/t1152/S.scala
+++ /dev/null
@@ -1,2 +0,0 @@
-class S2(fn:(J)=>Any)
-object S { new S2(_.k) }
diff --git a/tests/untried/pos/t1176/J.java b/tests/untried/pos/t1176/J.java
deleted file mode 100644
index 0d82c75fc..000000000
--- a/tests/untried/pos/t1176/J.java
+++ /dev/null
@@ -1,4 +0,0 @@
-class J {
- J() { }
- J( java.util.Collection<?> collection ) { }
-}
diff --git a/tests/untried/pos/t1176/S.scala b/tests/untried/pos/t1176/S.scala
deleted file mode 100644
index a7fc3e0ce..000000000
--- a/tests/untried/pos/t1176/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-class S { new J }
diff --git a/tests/untried/pos/t1186/t1186.java b/tests/untried/pos/t1186/t1186.java
deleted file mode 100644
index 5f2607623..000000000
--- a/tests/untried/pos/t1186/t1186.java
+++ /dev/null
@@ -1,8 +0,0 @@
-import scala.collection.immutable.Map;
-
-class Test {
-
- void foo() {
- Map<String, String> map = null;
- }
-}
diff --git a/tests/untried/pos/t1196/J.java b/tests/untried/pos/t1196/J.java
deleted file mode 100644
index 2ec7a711b..000000000
--- a/tests/untried/pos/t1196/J.java
+++ /dev/null
@@ -1 +0,0 @@
-class J { static void foo(Class c) { } }
diff --git a/tests/untried/pos/t1196/S.scala b/tests/untried/pos/t1196/S.scala
deleted file mode 100644
index f17cd249a..000000000
--- a/tests/untried/pos/t1196/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-object S { J.foo(null) }
diff --git a/tests/untried/pos/t1197/J.java b/tests/untried/pos/t1197/J.java
deleted file mode 100644
index b4e0a4255..000000000
--- a/tests/untried/pos/t1197/J.java
+++ /dev/null
@@ -1,2 +0,0 @@
-class J { interface K { } }
-
diff --git a/tests/untried/pos/t1197/S.scala b/tests/untried/pos/t1197/S.scala
deleted file mode 100644
index 7c9c15440..000000000
--- a/tests/untried/pos/t1197/S.scala
+++ /dev/null
@@ -1,2 +0,0 @@
-object S extends J.K
-
diff --git a/tests/untried/pos/t1203b/J.java b/tests/untried/pos/t1203b/J.java
deleted file mode 100644
index 7fae118e0..000000000
--- a/tests/untried/pos/t1203b/J.java
+++ /dev/null
@@ -1 +0,0 @@
-interface J { int j = 200 ; }
diff --git a/tests/untried/pos/t1203b/S.scala b/tests/untried/pos/t1203b/S.scala
deleted file mode 100644
index 68eac4bf6..000000000
--- a/tests/untried/pos/t1203b/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-object S { J.j }
diff --git a/tests/untried/pos/t1230/J.java b/tests/untried/pos/t1230/J.java
deleted file mode 100644
index 35aefd250..000000000
--- a/tests/untried/pos/t1230/J.java
+++ /dev/null
@@ -1 +0,0 @@
-class J { public int foo ; }
diff --git a/tests/untried/pos/t1230/S.scala b/tests/untried/pos/t1230/S.scala
deleted file mode 100644
index 530dd4b85..000000000
--- a/tests/untried/pos/t1230/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-object S extends App { (new J).foo = 5 }
diff --git a/tests/untried/pos/t1231/J.java b/tests/untried/pos/t1231/J.java
deleted file mode 100644
index 6b24205e5..000000000
--- a/tests/untried/pos/t1231/J.java
+++ /dev/null
@@ -1 +0,0 @@
-enum J { j1 }
diff --git a/tests/untried/pos/t1231/S.scala b/tests/untried/pos/t1231/S.scala
deleted file mode 100644
index f14aa2561..000000000
--- a/tests/untried/pos/t1231/S.scala
+++ /dev/null
@@ -1 +0,0 @@
-object S extends App { println(J.j1) }
diff --git a/tests/untried/pos/t1232/J.java b/tests/untried/pos/t1232/J.java
deleted file mode 100644
index 2d9e3bbd5..000000000
--- a/tests/untried/pos/t1232/J.java
+++ /dev/null
@@ -1,2 +0,0 @@
-package j;
-public class J { public enum E { e1 } }
diff --git a/tests/untried/pos/t1232/J2.java b/tests/untried/pos/t1232/J2.java
deleted file mode 100644
index 29237780a..000000000
--- a/tests/untried/pos/t1232/J2.java
+++ /dev/null
@@ -1,2 +0,0 @@
-import s.S;
-class J2 { }
diff --git a/tests/untried/pos/t1232/S.scala b/tests/untried/pos/t1232/S.scala
deleted file mode 100644
index 1b6bca732..000000000
--- a/tests/untried/pos/t1232/S.scala
+++ /dev/null
@@ -1,2 +0,0 @@
-package s
-class S { j.J.E.e1 }
diff --git a/tests/untried/pos/t1235/Test.java b/tests/untried/pos/t1235/Test.java
deleted file mode 100644
index 7bb83a849..000000000
--- a/tests/untried/pos/t1235/Test.java
+++ /dev/null
@@ -1,9 +0,0 @@
-import scala.collection.immutable.HashMap;
-
-public class Test {
-
- void foo() {
- new HashMap<String, String>();
- }
-}
-
diff --git a/tests/untried/pos/t1254/t1254.java b/tests/untried/pos/t1254/t1254.java
deleted file mode 100644
index 17e1c60bf..000000000
--- a/tests/untried/pos/t1254/t1254.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Taken from ticket #1254. Tests Java signatures in mirror classes and that
- Nothing is translated to Nothing$.
-*/
-
-import scala.None;
-
-// This compiles with javac but fails with Eclipse java compiler:
-// 'The type scala.Nothing cannot be resolved. It is indirectly referenced from required .class files'
-class NothingBug3 {
- public NothingBug3() {
- scala.Option<?> o = scala.None$.MODULE$;
-
- test(o);
- None.toLeft(new scala.runtime.AbstractFunction0<Integer>() {
- public Integer apply() { return 0; }
- });
- }
-
- public <T>void test(scala.Option<T> f) {}
-}
-
-// This compiles with javac but fails with Eclipse java compiler:
-// 'The type scala.Nothing cannot be resolved. It is indirectly referenced from required .class files'
-class NothingBug4 {
- public NothingBug4() {
- scala.Option o = scala.None$.MODULE$;
- }
-}
diff --git a/tests/untried/pos/t1263/Test.java b/tests/untried/pos/t1263/Test.java
deleted file mode 100644
index 1718a9909..000000000
--- a/tests/untried/pos/t1263/Test.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package test;
-
-import java.rmi.RemoteException;
-
-import test.Map;
-
-@SuppressWarnings("unchecked")
-public class Test implements Map<String, String> {
- public Map.MapTo plus(String o) {
- return null;
- }
-
- public int $tag() throws RemoteException {
- return 0;
- }
-}
-
diff --git a/tests/untried/pos/t1263/test.scala b/tests/untried/pos/t1263/test.scala
deleted file mode 100644
index 92d8c1cdf..000000000
--- a/tests/untried/pos/t1263/test.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-package test
-
-trait Map[A, +B] {
- def plus(key: A): MapTo = new MapTo(key)
-
- class MapTo(key: A) {
- def arrow [B1 >: B](value: B1) = null
- }
-}
-