Files
kotlin-fork/idea/testData/checker/regression/PropertyDeclarationAsExpression.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

2 lines
136 B
Kotlin
Vendored

val f = 1 >
<error descr="[DECLARATION_IN_ILLEGAL_CONTEXT] Declarations are not allowed in this position">val g: Int = 3</error>