Initialize with Constructor Parameter Intention: Fix IDE freeze on properties in generic class

#KT-14459 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-22 15:57:16 +03:00
parent b29c704a92
commit 465138cfa1
5 changed files with 33 additions and 1 deletions
@@ -0,0 +1,11 @@
// "Initialize with constructor parameter" "true"
// WITH_RUNTIME
abstract class Form<T>(val name: String){
var <caret>data: T?
set(value){
value?.let { processData(it) }
field = data
}
abstract protected fun processData(data: T)
}