Analyze local variable declarations in expression position

Fixes exception on invalid code "val c = 1 < val Int.f: Int = 3"
This commit is contained in:
Pavel V. Talanov
2016-01-12 14:12:30 +03:00
parent 060864f7af
commit 9bfa90dc0e
7 changed files with 29 additions and 9 deletions
@@ -1,3 +1,3 @@
fun test() {
(d@ <!DECLARATION_IN_ILLEGAL_CONTEXT!>val bar = 2<!>)
(d@ <!DECLARATION_IN_ILLEGAL_CONTEXT!>val <!UNUSED_VARIABLE!>bar<!> = 2<!>)
}