Skip to content

Commit 0823aed

Browse files
committed
Merge pull request scala#2542 from rjolly/scripting12
Read-eval-print : the script engine does not need print so make it lazy
2 parents bf3c44c + e85df24 commit 0823aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repl/scala/tools/nsc/interpreter/IMain.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ class IMain(@BeanProperty val factory: ScriptEngineFactory, initialSettings: Set
899899
val preamble = """
900900
|object %s {
901901
| %s
902-
| val %s: String = %s {
902+
| lazy val %s: String = %s {
903903
| %s
904904
| (""
905905
""".stripMargin.format(

0 commit comments

Comments
 (0)