Skip to content

Commit 8b2f2c3

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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

tests/warn/i21525.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//> using options -Werror -Wunused:imports
22

33
import scala.reflect.{Typeable, TypeTest}
4-
import compiletime.*
54

65
trait A {
76
type B

0 commit comments

Comments
 (0)