[FIR IDE] Use proper FirSessions in FirSupertypesResolution

Symbols might be from other modules, so we need to use corresponding
`FirSession`s; otherwise it would be impossible to query symbols
from `firProvider`

^KTIJ-21714 Fixed
This commit is contained in:
Roman Golyshev
2022-05-12 21:00:21 +04:00
parent 11eb5ce39c
commit 254151d82c
11 changed files with 290 additions and 6 deletions
@@ -284,6 +284,24 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt");
}
@Test
@TestMetadata("inherentlyImportedTypeFromOtherModule.kt")
public void testInherentlyImportedTypeFromOtherModule() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/inherentlyImportedTypeFromOtherModule.kt");
}
@Test
@TestMetadata("inherentlyImportedTypeFromOtherModule2.kt")
public void testInherentlyImportedTypeFromOtherModule2() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/inherentlyImportedTypeFromOtherModule2.kt");
}
@Test
@TestMetadata("inherentlyImportedTypeFromOtherModule3.kt")
public void testInherentlyImportedTypeFromOtherModule3() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/inherentlyImportedTypeFromOtherModule3.kt");
}
@Test
@TestMetadata("intersectionScope.kt")
public void testIntersectionScope() throws Exception {