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,6 +5,10 @@ inline class IC(val x: Int)
|
||||
class C {
|
||||
fun returnsInlineClassType(): IC = IC(42)
|
||||
val propertyOfInlineClassType: IC get() = IC(42)
|
||||
|
||||
@Suppress("INAPPLICABLE_JVM_NAME")
|
||||
@JvmName("returnsInlineClassTypeJvmName")
|
||||
fun returnsInlineClassTypeJvmName(): IC = IC(42)
|
||||
}
|
||||
|
||||
fun returnsInlineClassType(): IC = IC(42)
|
||||
|
||||
Reference in New Issue
Block a user