summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-10-08 14:30:28 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-10-08 14:30:28 +0000
commit29a8a8f77998b640f5083e87cd735301dd63922a (patch)
tree736f117d9efd23cea15393976a3066a01a78015d /test/files
parentdbe66d06722cc31b7d898390315daf07daf05c54 (diff)
downloadscala-29a8a8f77998b640f5083e87cd735301dd63922a.tar.gz
scala-29a8a8f77998b640f5083e87cd735301dd63922a.tar.bz2
scala-29a8a8f77998b640f5083e87cd735301dd63922a.zip
Moved successful tests from pending.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t0288/Foo.scala9
-rw-r--r--test/files/pos/t0288/Outer.java9
-rw-r--r--test/files/pos/t0591.scala7
-rw-r--r--test/files/pos/t0695/JavaClass.java5
-rw-r--r--test/files/pos/t0695/Test.scala3
-rw-r--r--test/files/pos/t0699/A.scala4
-rw-r--r--test/files/pos/t0699/B.scala5
-rw-r--r--test/files/pos/t0774/deathname.scala0
-rw-r--r--test/files/pos/t0774/unrelated.scala9
-rwxr-xr-xtest/files/pos/t1131.scala4
-rwxr-xr-xtest/files/pos/t1232/J.java2
-rwxr-xr-xtest/files/pos/t1232/J2.java2
-rwxr-xr-xtest/files/pos/t1232/S.scala2
13 files changed, 61 insertions, 0 deletions
diff --git a/test/files/pos/t0288/Foo.scala b/test/files/pos/t0288/Foo.scala
new file mode 100644
index 0000000000..778ba65f58
--- /dev/null
+++ b/test/files/pos/t0288/Foo.scala
@@ -0,0 +1,9 @@
+package test2;
+
+import test.Outer;
+
+class Foo extends Outer{
+
+ val bar = new Inner(); // Shouldn't this work?
+
+}
diff --git a/test/files/pos/t0288/Outer.java b/test/files/pos/t0288/Outer.java
new file mode 100644
index 0000000000..bea3e3f8d0
--- /dev/null
+++ b/test/files/pos/t0288/Outer.java
@@ -0,0 +1,9 @@
+package test;
+
+public class Outer{
+
+ public class Inner{
+
+ }
+
+}
diff --git a/test/files/pos/t0591.scala b/test/files/pos/t0591.scala
new file mode 100644
index 0000000000..de02d6b579
--- /dev/null
+++ b/test/files/pos/t0591.scala
@@ -0,0 +1,7 @@
+object Test {
+ def implicitly[T](implicit t : T) = t
+ implicit def perhaps[T](implicit t : T) : Option[T] = Some(t)
+ implicit val hello = "Hello"
+ implicitly[String]
+ implicitly[Option[String]]
+} \ No newline at end of file
diff --git a/test/files/pos/t0695/JavaClass.java b/test/files/pos/t0695/JavaClass.java
new file mode 100644
index 0000000000..a765f7e324
--- /dev/null
+++ b/test/files/pos/t0695/JavaClass.java
@@ -0,0 +1,5 @@
+public class JavaClass<A> {
+ class InnerClass {
+ public A method() { return null; }
+ }
+}
diff --git a/test/files/pos/t0695/Test.scala b/test/files/pos/t0695/Test.scala
new file mode 100644
index 0000000000..7318867bf7
--- /dev/null
+++ b/test/files/pos/t0695/Test.scala
@@ -0,0 +1,3 @@
+object Test extends JavaClass[AnyRef] {
+ var field: InnerClass = null
+}
diff --git a/test/files/pos/t0699/A.scala b/test/files/pos/t0699/A.scala
new file mode 100644
index 0000000000..740d8ecda3
--- /dev/null
+++ b/test/files/pos/t0699/A.scala
@@ -0,0 +1,4 @@
+object A {
+ sealed trait T
+ sealed class C
+} \ No newline at end of file
diff --git a/test/files/pos/t0699/B.scala b/test/files/pos/t0699/B.scala
new file mode 100644
index 0000000000..f1f17efe8f
--- /dev/null
+++ b/test/files/pos/t0699/B.scala
@@ -0,0 +1,5 @@
+object B {
+ trait T1 extends A.T
+ trait T2 extends A.C
+ class C1 extends A.C
+} \ No newline at end of file
diff --git a/test/files/pos/t0774/deathname.scala b/test/files/pos/t0774/deathname.scala
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/test/files/pos/t0774/deathname.scala
diff --git a/test/files/pos/t0774/unrelated.scala b/test/files/pos/t0774/unrelated.scala
new file mode 100644
index 0000000000..1efdb2505e
--- /dev/null
+++ b/test/files/pos/t0774/unrelated.scala
@@ -0,0 +1,9 @@
+object Outer {
+ import Inner._
+
+ deathname
+
+ object Inner {
+ def deathname: Int = 1
+ }
+}
diff --git a/test/files/pos/t1131.scala b/test/files/pos/t1131.scala
new file mode 100755
index 0000000000..5ef980348d
--- /dev/null
+++ b/test/files/pos/t1131.scala
@@ -0,0 +1,4 @@
+trait A { self: Any { def p: Any } =>
+ def f(b: => Unit) {}
+ f { p }
+}
diff --git a/test/files/pos/t1232/J.java b/test/files/pos/t1232/J.java
new file mode 100755
index 0000000000..af3aad928d
--- /dev/null
+++ b/test/files/pos/t1232/J.java
@@ -0,0 +1,2 @@
+package j;
+public class J { public enum E { e1 } } \ No newline at end of file
diff --git a/test/files/pos/t1232/J2.java b/test/files/pos/t1232/J2.java
new file mode 100755
index 0000000000..dc117d360f
--- /dev/null
+++ b/test/files/pos/t1232/J2.java
@@ -0,0 +1,2 @@
+import s.S;
+class J2 { } \ No newline at end of file
diff --git a/test/files/pos/t1232/S.scala b/test/files/pos/t1232/S.scala
new file mode 100755
index 0000000000..1b6bca7327
--- /dev/null
+++ b/test/files/pos/t1232/S.scala
@@ -0,0 +1,2 @@
+package s
+class S { j.J.E.e1 }