[Analysis API FIR] fix NPE of == call resolve without builtins

We should not expect builtins to be always available as they are taken from indecies.

For K1 and FIR Standalone implementations, the builtins are always available.

^KT-62957 fixed
This commit is contained in:
Ilya Kirillov
2023-10-27 16:07:27 +02:00
committed by Space Team
parent 1aa5cf031f
commit 4720a0faa7
8 changed files with 92 additions and 6 deletions
@@ -664,6 +664,12 @@ public class FirStandaloneNormalAnalysisSourceModuleResolveCallTestGenerated ext
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/memberFunctionCallWithTypeArgument.kt");
}
@Test
@TestMetadata("noBuiltIns.kt")
public void testNoBuiltIns() throws Exception {
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/noBuiltIns.kt");
}
@Test
@TestMetadata("postfixUnaryOperatorOnVar.kt")
public void testPostfixUnaryOperatorOnVar() throws Exception {