[FIR] Prohibit statement-like expressions in expression context

^KT-61067 Fixed
This commit is contained in:
Nikolay Lunyak
2023-08-11 14:56:02 +03:00
parent 5c19cb3fcb
commit b25a67a50e
19 changed files with 183 additions and 91 deletions
@@ -1,3 +1,3 @@
fun test() {
(d@ val bar = 2)
(d@ <!EXPRESSION_EXPECTED!>val bar = 2<!>)
}