FIR checker: fix local type approximation on delegated property

Previously types of delegated property is not approximated, which can
cause local types to leak through public APIs.
This commit is contained in:
Tianyu Geng
2021-09-02 15:02:34 -07:00
committed by teamcityserver
parent 76e192fc8a
commit d3e8cc577c
12 changed files with 314 additions and 31 deletions
@@ -7543,6 +7543,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/declarationChecks/localFunctionNoInheritVisibility.kt");
}
@Test
@TestMetadata("localObjectInInnerClass.kt")
public void testLocalObjectInInnerClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/declarationChecks/localObjectInInnerClass.kt");
}
@Test
@TestMetadata("LocalVariableWithNoTypeInformation.kt")
public void testLocalVariableWithNoTypeInformation() throws Exception {