2086c34cb9
Before this commit, only references to functions & properties were possible, now fields & parameters are also supported
16 lines
234 B
Kotlin
Vendored
16 lines
234 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
|
|
|
fun eat(value: Any) {}
|
|
|
|
fun test(param: String) {
|
|
val a = ::param
|
|
|
|
val local = "local"
|
|
val b = ::local
|
|
|
|
val lambda = { -> }
|
|
val g = ::lambda
|
|
|
|
eat(::param)
|
|
}
|