JVM IR: Don't generate null checks on value parameters of private operator functions

The null check on the extension receiver of private operator functions
is a special case and doesn't extend to value parameters.
This commit is contained in:
Steven Schäfer
2020-11-03 15:13:22 +01:00
committed by Alexander Udalov
parent d4cb521433
commit bd4e2a283c
6 changed files with 88 additions and 1 deletions
@@ -17519,6 +17519,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/paramAssertionMessage.kt");
}
@TestMetadata("privateOperatorParameterAssertions.kt")
public void testPrivateOperatorParameterAssertions() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/privateOperatorParameterAssertions.kt");
}
@TestMetadata("staticCallErrorMessage.kt")
public void testStaticCallErrorMessage() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/staticCallErrorMessage.kt");