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
@@ -0,0 +1,2 @@
val f = 1 >
<error descr="[DECLARATION_IN_ILLEGAL_CONTEXT] Declarations are not allowed in this position">val g: Int = 3</error>