[AA] more tests for file scope

^KT-54311
This commit is contained in:
Dmitrii Gridin
2022-10-07 16:02:21 +02:00
committed by Space Team
parent 317408e780
commit f4ae696aee
7 changed files with 1040 additions and 104 deletions
@@ -0,0 +1,35 @@
// 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
var privateSetter = ""
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