mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +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
174 B
Kotlin
8 lines
174 B
Kotlin
class C<T> {
|
|
[kotlin.jvm.overloads] public fun foo(o: T, k: String = "K"): String = o.toString() + k
|
|
}
|
|
|
|
fun box(): String {
|
|
return Test.invokeMethodWithOverloads()
|
|
}
|