mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
18 lines
277 B
Kotlin
Vendored
18 lines
277 B
Kotlin
Vendored
// FILE: JavaClass.java
|
|
|
|
public class JavaClass {
|
|
public String getO() {
|
|
return "O";
|
|
}
|
|
}
|
|
|
|
// FILE: main.kt
|
|
|
|
// KT-9522 Allow invoke convention for synthetic property
|
|
|
|
operator fun String.invoke() = this + "K"
|
|
|
|
fun box(): String {
|
|
return JavaClass().o();
|
|
}
|