Files
kotlin-fork/idea/testData/inspectionsLocal/leakingThis/inClassLiteral.kt
T
2018-09-25 11:27:27 +03:00

20 lines
250 B
Kotlin
Vendored

// PROBLEM: none
import kotlin.reflect.KClass
open class Foo {
init {
test(<caret>this::class)
}
}
private fun test(c: KClass<out Foo>) {
// println(c)
}
class Bar : Foo()
fun main(args: Array<String>) {
Foo()
Bar()
}