Files
2020-12-16 19:52:30 +03:00

10 lines
205 B
Kotlin
Vendored

class Generic<T : CharSequence?>(val value: T) {
fun foo(): T = value
}
fun test(arg: Generic<String>) {
val value = arg.value
val foo = arg.foo()
val length = foo.length + value.length
}