mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
testdata
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -395,6 +395,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testCapturedVariablesAcceptance() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user