Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/afterThisInExtension.kt
T

11 lines
187 B
Kotlin

// "Create property 'foo'" "true"
// ERROR: Property must be initialized or be abstract
class A<T>(val n: T) {
val foo: A<Int>
}
fun <U> A<U>.test(): A<Int> {
return this.foo
}