Add regression test for obsolete issue

#KT-17365
This commit is contained in:
Alexander Udalov
2017-05-16 17:08:33 +03:00
parent 49453ca705
commit 18a211cb84
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,8 @@
>>> var x: Int = { -> if (true) throw RuntimeException() else 5}()
java.lang.RuntimeException
at Line_0$x$1.invoke(Line_0.kts:1)
at Line_0$x$1.invoke(Line_0.kts:1)
>>> x
error: unresolved reference: x
x
^