Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/expresssions/genericUsedInFunction.kt
T
2020-03-19 09:51:01 +03:00

9 lines
204 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
}