JVM_IR: check for null when converting unboxed inline classes to strings
`C?` can be unboxed into `T?` if if wraps a reference type `T!!`, but in this case `null` is not a valid value to pass to `toString-impl`. #KT-42005 Fixed
This commit is contained in:
Generated
+5
@@ -12017,6 +12017,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toStringOfUnboxedNullable.kt")
|
||||
public void testToStringOfUnboxedNullable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeChecksForInlineClasses.kt")
|
||||
public void testTypeChecksForInlineClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt");
|
||||
|
||||
Generated
+5
@@ -12017,6 +12017,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toStringOfUnboxedNullable.kt")
|
||||
public void testToStringOfUnboxedNullable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeChecksForInlineClasses.kt")
|
||||
public void testTypeChecksForInlineClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt");
|
||||
|
||||
+5
@@ -12082,6 +12082,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/toStringCallingPrivateFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("toStringOfUnboxedNullable.kt")
|
||||
public void testToStringOfUnboxedNullable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/toStringOfUnboxedNullable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeChecksForInlineClasses.kt")
|
||||
public void testTypeChecksForInlineClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/typeChecksForInlineClasses.kt");
|
||||
|
||||
Reference in New Issue
Block a user