[NI] Fix completion for ILT when Nothing constraint is present
Full completion should not be done if lower `Nothing` is the only proper constraint when constraint with ILT type is present. ILT will be selected as a resulting type and transformed into `Int` without attention to possible restrictions from outer calls.
This commit is contained in:
Generated
+5
@@ -10662,6 +10662,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/inference/completion/partialForIlt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("partialForIltWithNothing.kt")
|
||||
public void testPartialForIltWithNothing() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/completion/partialForIltWithNothing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveConstraint.kt")
|
||||
public void testTransitiveConstraint() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/completion/transitiveConstraint.kt");
|
||||
|
||||
Reference in New Issue
Block a user