Scripting: switch legacy CLI REPL to the new infrastructure
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -2,9 +2,6 @@
|
||||
error: expecting an element
|
||||
)(
|
||||
^
|
||||
error: expecting an expression
|
||||
)(
|
||||
^
|
||||
>>> fun foo() = 98
|
||||
>>> foo()
|
||||
98
|
||||
|
||||
Reference in New Issue
Block a user