lambda (IDEA-90043)

This commit is contained in:
Anna Kozlova
2012-08-17 17:48:39 +04:00
parent 03f4534b14
commit 3ac6e57c77
11 changed files with 307 additions and 116 deletions

View File

@@ -22,7 +22,7 @@ class InferenceFromArgs {
bar(b, (k, v) -> {Integer i = k; return v;});
bazz(<error descr="Cyclic inference">(k, v) -> v</error>);
bazz((k, v) -> {<error descr="Incompatible types. Found: 'E', required: 'int'">int i = k;</error> return v;});
bazz((k, v) -> {<error descr="Incompatible types. Found: '<lambda parameter>', required: 'int'">int i = k;</error> return v;});
}
public static <T> SameArgsI<T> max() {