KTIJ-20618 FIR IDE: Enforce resolved type bounds in ConeTypeContext.kt

When lazy resolve is involved, type bounds can be in an unresolved
state (e.g. `FirUserTypeRef` instead of `FirResolvedTypeRef`). To
enforce the resolve, we use `resolvedTypeBounds` where it might be
important

^KTIJ-20618 Fixed
This commit is contained in:
Roman Golyshev
2021-12-30 15:20:28 +03:00
committed by Space
parent a63351f5d1
commit 5964d8c566
7 changed files with 56 additions and 7 deletions
@@ -260,6 +260,12 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolve/implicitTypeInFakeOverride.kt");
}
@Test
@TestMetadata("implicitTypeWithTypeBound.kt")
public void testImplicitTypeWithTypeBound() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/implicitTypeWithTypeBound.kt");
}
@Test
@TestMetadata("incorrectDataClass.kt")
public void testIncorrectDataClass() throws Exception {