delete old inference strategy for java 8

This commit is contained in:
Anna Kozlova
2014-02-21 18:55:56 +01:00
parent 96af56c572
commit cf00d70317
17 changed files with 138 additions and 751 deletions
@@ -1,6 +1,6 @@
class Test {
void foo() {
final Foo<Number> a = new Foo<Number>(1);
final Foo<Number> a = new Foo<>(1);
}
}
@@ -4,7 +4,7 @@ interface SAM<X> {
class Foo {
void test() {
SAM<String> c = (i, j) -> "" + i + j;
SAM<X> c = (i, j) -> "" + i + j;
SAM<Integer> s3 = m(c);
}
<X> SAM<X> m(SAM<X> s) { return null; }