mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
lambda: testdata
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
interface I<T extends Number> {
|
||||
void _(T t);
|
||||
}
|
||||
|
||||
void foo(Object o) { }
|
||||
|
||||
void test() {
|
||||
I<?> i1 = (x) -> {};
|
||||
I<?> i2 = this :: foo;
|
||||
}
|
||||
}
|
||||
+4
@@ -232,6 +232,10 @@ public class LambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDeclaredTypeParameterBoundsAndUnboundedWildcard() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user