Skip to content

Commit 4dbff7f

Browse files
committed
chore: Add back repl test using bin/scala
1 parent e15b83a commit 4dbff7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/test/dotty/tools/scripting/BashExitCodeTests.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ class BashExitCodeTests:
6262
@Test def xPluginList = scala("-Xplugin-list")(0)
6363
@Test def vPhases = scala("-Vphases")(0)
6464

65+
@Test def replEval =
66+
scala("--repl-quit-after-init", "--repl-init-script", "'val i = 2 * 2; val j = i + 2'")(0)
67+
6568
/** A utility for running two commands in a row, like you do in bash. */
6669
extension (inline u1: Unit) inline def & (inline u2: Unit): Unit = { u1; u2 }
6770
end BashExitCodeTests

0 commit comments

Comments
 (0)