20 lines
460 B
Kotlin
Vendored
20 lines
460 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
interface A
|
|
|
|
object B
|
|
class C
|
|
|
|
fun test() {
|
|
val interface_as_fun = <!RESOLUTION_TO_CLASSIFIER!>A<!>()
|
|
val interface_as_val = <!NO_COMPANION_OBJECT!>A<!>
|
|
|
|
val object_as_fun = <!INVISIBLE_REFERENCE!>B<!>()
|
|
val class_as_val = <!NO_COMPANION_OBJECT!>C<!>
|
|
}
|
|
|
|
fun <T> bar() {
|
|
val typeParameter_as_val = <!TYPE_PARAMETER_IS_NOT_AN_EXPRESSION!>T<!>
|
|
val typeParameter_as_fun = <!UNRESOLVED_REFERENCE!>T<!>()
|
|
}
|