[Analysis API] Move testdata for scope provider
This commit is contained in:
committed by
teamcity
parent
4b7164a557
commit
e8272fa02e
+40
@@ -0,0 +1,40 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user