Initialize with Constructor Parameter Intention: Fix IDE freeze on properties in generic class
#KT-14459 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Initialize with constructor parameter" "true"
|
||||
// WITH_RUNTIME
|
||||
abstract class Form<T>(val name: String, data: T?){
|
||||
var <caret>data: T? = data
|
||||
set(value){
|
||||
value?.let { processData(it) }
|
||||
field = data
|
||||
}
|
||||
|
||||
abstract protected fun processData(data: T)
|
||||
}
|
||||
Reference in New Issue
Block a user