Forward compatibility hacks for Result.{success, failure}
Don't mangled functions annotated with @JvmName.
Annotate 'Result.success' and 'Result.failure' with @JvmName and
@Suppress("INAPPLICABLE_JVM_NAME").
NB this would require bootstrap.
This commit is contained in:
+5
@@ -14238,6 +14238,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noReturnTypeManglingJvmName.kt")
|
||||
public void testNoReturnTypeManglingJvmName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/noReturnTypeManglingJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableEqeqNonNull.kt")
|
||||
public void testNullableEqeqNonNull() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/nullableEqeqNonNull.kt");
|
||||
|
||||
Reference in New Issue
Block a user