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:
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user