Create from Usage: Make property lateinit where possible
#KT-17651 Fixed
This commit is contained in:
+1
-2
@@ -1,8 +1,7 @@
|
||||
// "Create member property 'A.foo'" "true"
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
|
||||
class A<T>(val n: T) {
|
||||
var foo: String
|
||||
lateinit var foo: String
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
Reference in New Issue
Block a user