Commit ef90033b authored by Anna Kozlova's avatar Anna Kozlova
Browse files

testdata

parent af014cf5
Showing with 21 additions and 0 deletions
+21 -0
import java.util.List;
class Foo<K> {
static <E> Foo<E> from(Iterable<? extends E> iterable) {
return null;
}
void m(Iterable<? extends String> arguments, List<String> list){
from(arguments).append<error descr="'append(java.lang.Iterable<? extends capture<? extends java.lang.String>>)' in 'Foo' cannot be applied to '(java.util.List<java.lang.String>)'">( list)</error>;
}
Foo<K> append(Iterable<? extends K> other) {
return null;
}
}
\ No newline at end of file
......@@ -395,6 +395,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest();
}
public void testCapturedVariablesAcceptance() throws Exception {
doTest();
}
private void doTest() throws Exception {
doTest(false);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment