diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t0288/Foo.scala | 9 | ||||
-rw-r--r-- | test/files/pos/t0288/Outer.java | 9 | ||||
-rw-r--r-- | test/files/pos/t0591.scala | 7 | ||||
-rw-r--r-- | test/files/pos/t0695/JavaClass.java | 5 | ||||
-rw-r--r-- | test/files/pos/t0695/Test.scala | 3 | ||||
-rw-r--r-- | test/files/pos/t0699/A.scala | 4 | ||||
-rw-r--r-- | test/files/pos/t0699/B.scala | 5 | ||||
-rw-r--r-- | test/files/pos/t0774/deathname.scala | 0 | ||||
-rw-r--r-- | test/files/pos/t0774/unrelated.scala | 9 | ||||
-rwxr-xr-x | test/files/pos/t1131.scala | 4 | ||||
-rwxr-xr-x | test/files/pos/t1232/J.java | 2 | ||||
-rwxr-xr-x | test/files/pos/t1232/J2.java | 2 | ||||
-rwxr-xr-x | test/files/pos/t1232/S.scala | 2 |
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 } |