Fix false positive in class literal #KT-16338 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6cd13341ee
commit
65f23f3c4e
@@ -0,0 +1,20 @@
|
||||
// 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()
|
||||
}
|
||||
Reference in New Issue
Block a user