mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
@platformName is now supported for final non-overriding class member functions (including property accessors). Front-end provides diagnostics for inapplicable annotation cases. Code generation updated: - ignore kotlin.platform.platformName annotation for Java class methods; - bridges generation generates proper JVM declarations in case of methods renamed with @platformName. @platformName-related tests added. #KT-5524 Fixed
6 lines
153 B
Kotlin
Vendored
6 lines
153 B
Kotlin
Vendored
fun box(): String {
|
|
val test1 = FakePlatformName().foo()
|
|
if (test1 != "foo") return "Failed: FakePlatformName().foo()==$test1"
|
|
|
|
return "OK"
|
|
} |