Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/callableReference/property/localVariable.kt
T
Alexander Udalov aa4d6a4ea7 Support :: references to properties in frontend
#KT-1183 In Progress
2014-07-02 01:26:18 +04:00

12 lines
246 B
Kotlin

// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
fun test(param: String) {
val a = ::<!UNSUPPORTED!>param<!>
val local = "local"
val b = ::<!UNSUPPORTED!>local<!>
val lambda = { -> }
val g = ::<!UNSUPPORTED!>lambda<!>
}