Files
kotlin-fork/analysis/analysis-api/testData/components/scopeProvider/fileScopeTest/fileScope.kt
T
2023-03-20 22:04:48 +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