10 lines
205 B
Kotlin
Vendored
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
|
|
}
|