diff options
Diffstat (limited to 'tests/disabled')
18 files changed, 86 insertions, 0 deletions
diff --git a/tests/disabled/java-interop/pos/t1711/Seq.scala b/tests/disabled/java-interop/pos/t1711/Seq.scala new file mode 100644 index 000000000..c18f05cd7 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1711/Seq.scala @@ -0,0 +1,12 @@ +package com + +object Sequence { + + def filteringFunction[V](filter: V => Boolean): List[V] => List[V] = { + def include(v: V) = + filter(v) + (l: List[V]) => l.filter(include) + } + +} + diff --git a/tests/disabled/java-interop/pos/t1711/Test.java b/tests/disabled/java-interop/pos/t1711/Test.java new file mode 100644 index 000000000..5ec0f2297 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1711/Test.java @@ -0,0 +1,6 @@ +import com.Sequence; + +public class Test { + void foo() { + } +} diff --git a/tests/disabled/java-interop/pos/t1745/J.java b/tests/disabled/java-interop/pos/t1745/J.java new file mode 100644 index 000000000..8444eabb2 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1745/J.java @@ -0,0 +1,10 @@ +class J { + S1 s1; + S2 s2; + + String s = bar(S3.foo(), S3.bar("def")); + + private String bar(String s1, String s2) { + return s1 + s2; + } +} diff --git a/tests/disabled/java-interop/pos/t1745/S.scala b/tests/disabled/java-interop/pos/t1745/S.scala new file mode 100644 index 000000000..84c437133 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1745/S.scala @@ -0,0 +1,7 @@ +case class S1(n: Int) { } +case class S2(n: Int, p: Int) { } +class S3 { } +object S3 { + def foo() = "abc" + def bar[T](x: T): T = x +} diff --git a/tests/disabled/java-interop/pos/t1751/A1_2.scala b/tests/disabled/java-interop/pos/t1751/A1_2.scala new file mode 100644 index 000000000..354d5eecd --- /dev/null +++ b/tests/disabled/java-interop/pos/t1751/A1_2.scala @@ -0,0 +1,2 @@ +@SuiteClasses(Array(classOf[A2])) +class A1 diff --git a/tests/disabled/java-interop/pos/t1751/A2_1.scala b/tests/disabled/java-interop/pos/t1751/A2_1.scala new file mode 100644 index 000000000..c768062e4 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1751/A2_1.scala @@ -0,0 +1,2 @@ +@SuiteClasses(Array()) +class A2 diff --git a/tests/disabled/java-interop/pos/t1751/SuiteClasses.java b/tests/disabled/java-interop/pos/t1751/SuiteClasses.java new file mode 100644 index 000000000..a415e4f57 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1751/SuiteClasses.java @@ -0,0 +1,3 @@ +public @interface SuiteClasses { + public Class<?>[] value(); +} diff --git a/tests/disabled/java-interop/pos/t1782/Ann.java b/tests/disabled/java-interop/pos/t1782/Ann.java new file mode 100644 index 000000000..0dcfbd2ed --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/Ann.java @@ -0,0 +1,3 @@ +public @interface Ann { + public Days value(); +} diff --git a/tests/disabled/java-interop/pos/t1782/Days.java b/tests/disabled/java-interop/pos/t1782/Days.java new file mode 100644 index 000000000..203a87b1c --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/Days.java @@ -0,0 +1,3 @@ +public enum Days { + Friday, Sunday +} diff --git a/tests/disabled/java-interop/pos/t1782/ImplementedBy.java b/tests/disabled/java-interop/pos/t1782/ImplementedBy.java new file mode 100644 index 000000000..6aa8b4fa9 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/ImplementedBy.java @@ -0,0 +1,3 @@ +public @interface ImplementedBy { + public Class<?> value(); +} diff --git a/tests/disabled/java-interop/pos/t1782/Test_1.scala b/tests/disabled/java-interop/pos/t1782/Test_1.scala new file mode 100644 index 000000000..6467a74c2 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/Test_1.scala @@ -0,0 +1,16 @@ +@ImplementedBy(classOf[Provider]) +trait Service { + def someMethod() +} + +class Provider + extends Service +{ + // test enumeration java annotations + @Ann(Days.Friday) def someMethod() = () + + // #2103 + @scala.beans.BeanProperty + @Ann(value = Days.Sunday) + val t2103 = "test" +} diff --git a/tests/disabled/java-interop/pos/t1836/J.java b/tests/disabled/java-interop/pos/t1836/J.java new file mode 100644 index 000000000..a009a59e2 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1836/J.java @@ -0,0 +1 @@ +public abstract class J<T> { protected J(T id) { } } diff --git a/tests/disabled/java-interop/pos/t1836/S.scala b/tests/disabled/java-interop/pos/t1836/S.scala new file mode 100644 index 000000000..88ce1063e --- /dev/null +++ b/tests/disabled/java-interop/pos/t1836/S.scala @@ -0,0 +1 @@ +class S extends J("") diff --git a/tests/disabled/java-interop/pos/t1840/J.java b/tests/disabled/java-interop/pos/t1840/J.java new file mode 100644 index 000000000..fd98b6c4a --- /dev/null +++ b/tests/disabled/java-interop/pos/t1840/J.java @@ -0,0 +1,4 @@ +package p; +class J { + J() {} +} diff --git a/tests/disabled/java-interop/pos/t1840/S.scala b/tests/disabled/java-interop/pos/t1840/S.scala new file mode 100644 index 000000000..ff513d2c1 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1840/S.scala @@ -0,0 +1,2 @@ +package p +class S { new J } diff --git a/tests/disabled/java-interop/pos/t1937/NumberGenerator.java b/tests/disabled/java-interop/pos/t1937/NumberGenerator.java new file mode 100644 index 000000000..59d604733 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1937/NumberGenerator.java @@ -0,0 +1,7 @@ +package br.com.caelum.caelumweb2.money; + +public class NumberGenerator { + public String generate() { + return null; + } +} diff --git a/tests/disabled/not-representable/pos/t1803.flags b/tests/disabled/not-representable/pos/t1803.flags new file mode 100644 index 000000000..d1a824416 --- /dev/null +++ b/tests/disabled/not-representable/pos/t1803.flags @@ -0,0 +1 @@ +-Yinfer-argument-types
\ No newline at end of file diff --git a/tests/disabled/not-representable/pos/t1803.scala b/tests/disabled/not-representable/pos/t1803.scala new file mode 100644 index 000000000..94b59a480 --- /dev/null +++ b/tests/disabled/not-representable/pos/t1803.scala @@ -0,0 +1,3 @@ +// No parameter type inference in Dotty +class A { def foo[A](a: A) = a } +class B extends A { override def foo[A](b) = b } |