Make JvmPlatform.defaultImports a stored property
It was incorrectly made a getter-only property in 2f616bdd
This commit is contained in:
@@ -26,8 +26,7 @@ import org.jetbrains.kotlin.resolve.scopes.MemberScope
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
object JvmPlatform : TargetPlatform("JVM") {
|
object JvmPlatform : TargetPlatform("JVM") {
|
||||||
override val defaultImports: List<ImportPath>
|
override val defaultImports: List<ImportPath> = ArrayList<ImportPath>().apply {
|
||||||
get() = ArrayList<ImportPath>().apply {
|
|
||||||
add(ImportPath("java.lang.*"))
|
add(ImportPath("java.lang.*"))
|
||||||
add(ImportPath("kotlin.*"))
|
add(ImportPath("kotlin.*"))
|
||||||
add(ImportPath("kotlin.annotation.*"))
|
add(ImportPath("kotlin.annotation.*"))
|
||||||
@@ -51,6 +50,5 @@ object JvmPlatform : TargetPlatform("JVM") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
override val platformConfigurator: PlatformConfigurator = JvmPlatformConfigurator
|
override val platformConfigurator: PlatformConfigurator = JvmPlatformConfigurator
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user