mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for fresh variables during applicability check (javac infers Object and fails)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
|
||||
import java.util.List;
|
||||
|
||||
abstract class Foo {
|
||||
|
||||
abstract <V> List<V> createList();
|
||||
|
||||
|
||||
<T extends Comparable<T>> void sorted(List<T> list) { }
|
||||
|
||||
{
|
||||
sorted(createList());
|
||||
}
|
||||
}
|
||||
@@ -173,6 +173,7 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
public void testUncheckedConversionDuringProperTypeExpressionConstraintResolution() { doTest(); }
|
||||
//public void _testAssignabilityOfStandaloneExpressionsDuringApplicabilityCheck() { doTest(); }
|
||||
public void testRecursiveTypeWithCapture() { doTest(); }
|
||||
public void testFreshVariablesDuringApplicabilityCheck() { doTest(); }
|
||||
|
||||
public void testApplicabilityCheckFailsExpressionTypeCheckPasses() throws Exception {
|
||||
doTest();
|
||||
|
||||
Reference in New Issue
Block a user