mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
11 lines
280 B
Kotlin
Vendored
11 lines
280 B
Kotlin
Vendored
// "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)
|
|
} |