mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
#KT-2095 Fixed fix backend-side issues with kotlin.jvm.overloads: support the annotation on constructors, generate nullablity annotations on parameters, generate generic signatures, add various tests
8 lines
171 B
Kotlin
8 lines
171 B
Kotlin
class C {
|
|
[kotlin.jvm.overloads] public fun foo(o: String = "O", k: String = "K"): String = o + k
|
|
}
|
|
|
|
fun box(): String {
|
|
return Test.invokeMethodWithOverloads()
|
|
}
|