d30efdb001
The "common" subproject keeps only backend-neutral logic and depends only on :kotlinx-metadata library. It takes the name of the former project - :tools:kotlinp The "jvm" subproject depends on the "common" one and also depends on :kotlinx-metadata-jvm. It gets the new name - :tools:kotlinp-jvm There is a lot of touched files in this commit. The majority of them is just moved files (tests, test data, etc). Only the following files were actually modified: .space/CODEOWNERS build.gradle.kts libraries/tools/abi-comparator/build.gradle.kts libraries/tools/kotlinp/build.gradle.kts libraries/tools/kotlinp/jvm/build.gradle.kts plugins/kapt3/kapt3-compiler/build.gradle.kts settings.gradle ^KT-62340
31 lines
569 B
Kotlin
Vendored
31 lines
569 B
Kotlin
Vendored
import kotlin.reflect.KProperty
|
|
|
|
class Delegate<T>(val value: T? = null) {
|
|
operator fun getValue(instance: Any?, property: KProperty<*>): T = value!!
|
|
}
|
|
|
|
val nonLocal by Delegate<String>()
|
|
|
|
val init0 = run {
|
|
val local1 by Delegate<Double>()
|
|
val local2 by Delegate<Any>()
|
|
}
|
|
|
|
val init1 = run {
|
|
val local3 by Delegate<CharSequence?>()
|
|
}
|
|
|
|
class Class {
|
|
init {
|
|
val local4 by Delegate<Array<String>>()
|
|
}
|
|
|
|
fun f() {
|
|
val local5 by Delegate<List<Unit>?>()
|
|
|
|
fun g() {
|
|
val local6 by Delegate<Int>()
|
|
}
|
|
}
|
|
}
|