[NI] Fix exception, recorded type for function statement can be null
See `checkStatementType`, we return `null` to reduce count of errors. Also, note that named function which is used as last statement in lambda doesn't coerce to Unit, this is a separate bug and will be addressed later, see #KT-25383 #EA-121026 Fixed
This commit is contained in:
@@ -9385,6 +9385,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/listConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionInsideIfBlock.kt")
|
||||
public void testLocalFunctionInsideIfBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/localFunctionInsideIfBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapFunction.kt")
|
||||
public void testMapFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/mapFunction.kt");
|
||||
|
||||
Reference in New Issue
Block a user