Files
kotlin-fork/jps-plugin/testData/incremental/withJava/other/innerClassNotGeneratedWhenRebuilding/Introspector.kt
T
2017-08-29 02:24:38 +03:00

11 lines
463 B
Kotlin
Vendored

abstract class Introspector<M : Model>(protected val model: Model) {
protected abstract inner class Retriever(protected val transaction: Any) {
protected var model: Model = this@Introspector.model
}
protected abstract inner class SchemaRetriever(transaction: Any): Retriever(transaction) {
protected inline fun inSchema(crossinline modifier: (Any) -> Unit) =
model.modify { schema -> modifier.invoke(schema) }
}
}