Files
kotlin-fork/compiler/testData/ir/irText/expressions/reflectionLiterals.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

43 lines
476 B
Kotlin
Vendored

class A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun foo() {
}
}
fun bar() {
}
val qux: Int
field = 1
get
val test1: KClass<A>
field = A::class
get
val test2: KClass<out Int>
field = <get-qux>()::class
get
val test3: KFunction1<A, Unit>
field = A::foo
get
val test4: KFunction0<A>
field = A::<init>
get
val test5: KFunction0<Unit>
field = A()::foo
get
val test6: KFunction0<Unit>
field = ::bar
get