[tests] prepares Java tests for the language level raise

This commit is contained in:
Roman Shevchenko
2017-03-24 13:09:47 +01:00
parent 05b15f593e
commit 6bd1b92c6e
38 changed files with 129 additions and 166 deletions

View File

@@ -1,9 +1,8 @@
import java.util.List;
class Test {
interface Function<K, V> {
V _(K k);
V f(K k);
}
static {
@@ -18,9 +17,8 @@ class Test {
}
class Test1 {
interface Function<K> {
K _();
K f();
}
static {
@@ -32,4 +30,4 @@ class Test1 {
}
public static <C> void foo(Function<C> fn) { }
}
}

View File

@@ -1,6 +1,6 @@
class Test {
interface I {
Object _();
Object m();
}
static class Foo<X> {}
static class Foo1 {}
@@ -9,5 +9,4 @@ class Test {
I o1 = Foo1::<String>new;
}
}
}