Files
kotlin-fork/compiler/testData/ir/irText/expressions/reflectionLiterals.kt
T
Tianyu Geng d4717569b9 Fix inferred type of FirGetClassCall
The inferred type should be `KClass<out Blah>` for `FirGetClassCall`
invoked on expressions.
2021-05-06 17:50:33 +03:00

13 lines
189 B
Kotlin
Vendored

// FIR_IDENTICAL
class A {
fun foo() {}
}
fun bar() {}
val qux = 1
val test1 = A::class
val test2 = qux::class
val test3 = A::foo
val test4 = ::A
val test5 = A()::foo
val test6 = ::bar