Fix false positive in class literal #KT-16338 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-09-21 18:54:45 +09:00
committed by Mikhail Glukhikh
parent 6cd13341ee
commit 65f23f3c4e
3 changed files with 27 additions and 1 deletions
@@ -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()
}