mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +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
12 lines
215 B
Java
Vendored
12 lines
215 B
Java
Vendored
import kotlin.platform.platformName;
|
|
|
|
public class FakePlatformName {
|
|
@platformName(name = "fake")
|
|
public String foo() {
|
|
return "foo";
|
|
}
|
|
|
|
public String fake() {
|
|
return "fake";
|
|
}
|
|
} |