Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/property/localVariable.fir.kt
T
Mikhail Glukhikh 2086c34cb9 [FIR] Fix callable references to fields / parameters / etc.
Before this commit, only references to functions & properties
were possible, now fields & parameters are also supported
2020-01-23 12:32:40 +03:00

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)
}