Scripting: switch legacy CLI REPL to the new infrastructure

This commit is contained in:
Ilya Chernikov
2022-05-13 20:44:44 +02:00
committed by teamcity
parent 6784cb63aa
commit b36d1be5f8
16 changed files with 185 additions and 62 deletions
+2
View File
@@ -1,5 +1,6 @@
>>> throw Exception("hi there")
java.lang.Exception: hi there
at Line_0.<init>(Line_0.kts:1)
>>> fun foo() = 2
>>> foo()
2
@@ -7,3 +8,4 @@ java.lang.Exception: hi there
>>> bar()
java.lang.AssertionError
at Line_3.bar(Line_3.kts:1)
at Line_4.<init>(Line_4.kts:1)
+1
View File
@@ -3,3 +3,4 @@
java.lang.IllegalStateException: message
at Line_0$B.foo(Line_0.kts:1)
at Line_0$B.toString(Line_0.kts:1)
at Line_1.<init>(Line_1.kts:1)
+3 -3
View File
@@ -2,7 +2,7 @@
java.lang.RuntimeException
at Line_0$x$1.invoke(Line_0.kts:1)
at Line_0$x$1.invoke(Line_0.kts:1)
at Line_0.<init>(Line_0.kts:1)
>>> x
error: unresolved reference: x
x
^
java.lang.NullPointerException
at Line_1.<init>(Line_1.kts:1)
-3
View File
@@ -2,9 +2,6 @@
error: expecting an element
)(
^
error: expecting an expression
)(
^
>>> fun foo() = 98
>>> foo()
98