Files
kotlin-fork/compiler/testData/diagnostics/tests/deparenthesize/ParenthesizedVariable.kt
T
Pavel V. Talanov 9bfa90dc0e Analyze local variable declarations in expression position
Fixes exception on invalid code "val c = 1 < val Int.f: Int = 3"
2016-01-12 19:31:16 +03:00

3 lines
94 B
Kotlin
Vendored

fun test() {
(d@ <!DECLARATION_IN_ILLEGAL_CONTEXT!>val <!UNUSED_VARIABLE!>bar<!> = 2<!>)
}