Files
kotlin-fork/analysis/analysis-api/testData/scopes/fileScopeTest/fileScope.kt
T
Dmitrii Gridin 01d5a5bc5b [AA] support @JvmField in KtSymbolInfoProvider
^KT-54311
^KT-54360 Fixed
2022-10-17 14:59:46 +00:00

41 lines
759 B
Kotlin
Vendored

// WITH_STDLIB
fun function(): Int = 1
@JvmOverloads
fun functionWithDefault(par1: Int) = Unit
val testVal: Int = 2
var initializedVariable = 3
var unitializedVariable: Long
lateinit var lateinitVariable: String
var variableWithBackingField: Long = 4
get() = field
@set:JvmName("customPrivateSetter")
var privateSetter = ""
private set
var jvmNameOnSetter = ""
@JvmName("customPrivateSetter")
private set
@get:JvmName("myCustomGetter")
val customGetter: Int get() = 2
val jvmNameOnGetter: Int @JvmName("myCustomGetter") get() = 2
val Int.propertyWithReceiver: Int get() = this
val <T> T.propertyWithGenericReceiver: Int get() = 23
class OuterClass {
class NestedClass
}
const val constant = 2
@JvmField
var jvmField: Long = 2