[NI] Fix isNullableType for definitely not null type parameter

Consider type parameter with nullable bound not null
if it is inside of a definitely not null type.
This commit is contained in:
Pavel Kirpichenkov
2020-03-10 18:23:51 +03:00
parent 88ae9bc7d5
commit 04f9a03796
7 changed files with 56 additions and 0 deletions
@@ -15237,6 +15237,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/nullableTypes/baseWithNullableUpperBound.kt");
}
@TestMetadata("definitelyNotNullWithNullableBound.kt")
public void testDefinitelyNotNullWithNullableBound() throws Exception {
runTest("compiler/testData/diagnostics/tests/nullableTypes/definitelyNotNullWithNullableBound.kt");
}
@TestMetadata("elvisOnUnit.kt")
public void testElvisOnUnit() throws Exception {
runTest("compiler/testData/diagnostics/tests/nullableTypes/elvisOnUnit.kt");