Add regression test for obsolete issue
#KT-17365
This commit is contained in:
@@ -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
|
||||
^
|
||||
@@ -66,6 +66,12 @@ public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInVariableInitializer.repl")
|
||||
public void testExceptionInVariableInitializer() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/repl/exceptionInVariableInitializer.repl");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("function.repl")
|
||||
public void testFunction() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/repl/function.repl");
|
||||
|
||||
Reference in New Issue
Block a user