diff options
author | Paul Phillips <paulp@improving.org> | 2013-05-17 11:39:41 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-05-17 11:39:41 -0700 |
commit | 0823aedaf38ecde794a7703d5b7c4c7562ed4ca6 (patch) | |
tree | 84323b769ba0721c05c7e47a976248a57bfd8b96 /src | |
parent | bf3c44c3356456a4ee946334a5df76893ab3d322 (diff) | |
parent | e85df241f84953fd9ffc6ff9a72fe1438eaf9588 (diff) | |
download | scala-0823aedaf38ecde794a7703d5b7c4c7562ed4ca6.tar.gz scala-0823aedaf38ecde794a7703d5b7c4c7562ed4ca6.tar.bz2 scala-0823aedaf38ecde794a7703d5b7c4c7562ed4ca6.zip |
Merge pull request #2542 from rjolly/scripting12
Read-eval-print : the script engine does not need print so make it lazy
Diffstat (limited to 'src')
-rw-r--r-- | src/repl/scala/tools/nsc/interpreter/IMain.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/scala/tools/nsc/interpreter/IMain.scala b/src/repl/scala/tools/nsc/interpreter/IMain.scala index 66129e0be8..379751b9a7 100644 --- a/src/repl/scala/tools/nsc/interpreter/IMain.scala +++ b/src/repl/scala/tools/nsc/interpreter/IMain.scala @@ -899,7 +899,7 @@ class IMain(@BeanProperty val factory: ScriptEngineFactory, initialSettings: Set val preamble = """ |object %s { | %s - | val %s: String = %s { + | lazy val %s: String = %s { | %s | ("" """.stripMargin.format( |