Fix stdlib compilation after updated @JvmName check
Previously, extension receiver type was not taken into account when
checking for @JvmName annotation applicability to possibly mangled
functions (such functions, however, were mangled).
This bug was fixed, but, unfortunately, not before such functions were
added to stdlib ('sumOf' family).
This commit is contained in:
+4
-1
@@ -24,4 +24,7 @@ class C {
|
||||
|
||||
@JvmName("test")
|
||||
fun returnsKotlinResult(a: Result<Int>): Result<Int> = a
|
||||
}
|
||||
}
|
||||
|
||||
@JvmName("extensionFun")
|
||||
fun Foo.extensionFun() {}
|
||||
+4
-1
@@ -24,4 +24,7 @@ class C {
|
||||
|
||||
<!INAPPLICABLE_JVM_NAME!>@JvmName("test")<!>
|
||||
fun returnsKotlinResult(a: Result<Int>): Result<Int> = a
|
||||
}
|
||||
}
|
||||
|
||||
<!INAPPLICABLE_JVM_NAME!>@JvmName("extensionFun")<!>
|
||||
fun Foo.extensionFun() {}
|
||||
+1
@@ -4,6 +4,7 @@ package
|
||||
@kotlin.jvm.JvmName(name = "good") public fun baz(/*0*/ r: kotlin.Result<kotlin.Int>): kotlin.Unit
|
||||
@kotlin.jvm.JvmName(name = "test") public fun returnsInlineClass(): Foo
|
||||
@kotlin.jvm.JvmName(name = "test") public fun returnsKotlinResult(/*0*/ a: kotlin.Result<kotlin.Int>): kotlin.Result<kotlin.Int>
|
||||
@kotlin.jvm.JvmName(name = "extensionFun") public fun Foo.extensionFun(): kotlin.Unit
|
||||
|
||||
public final class C {
|
||||
public constructor C()
|
||||
|
||||
Reference in New Issue
Block a user