Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/thisInExtension.kt.after
T
2016-07-20 15:39:19 +03:00

11 lines
196 B
Plaintext
Vendored

// "Create member property 'A.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
}