Skip to content

Commit 50a0a40

Browse files
committed
Fix repl test
1 parent dfe3caa commit 50a0a40

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

compiler/test-resources/repl/i6007

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
scala> import quoted.Toolbox.Default._
2-
32
scala> val v = '{ (if true then Some(1) else None).map(v => v+1) }
43
val v: quoted.Expr[Option[Int]] = Expr(<pickled tasty>)
5-
64
scala> v.show
7-
val res0: String = if (true) scala.Some.apply[scala.Int](1) else scala.None.map[scala.Int](((v: scala.Int) => v.+(1)))
8-
5+
val res0: String = (if (true) scala.Some.apply[scala.Int](1) else scala.None).map[scala.Int](((v: scala.Int) => v.+(1)))
96
scala> v.run
10-
val res1: Option[Int] = Some(2)
7+
val res1: Option[Int] = Some(2)

library/src/scala/quoted/Toolbox.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ object Toolbox {
4848

4949
def make(implicit settings: Settings): Toolbox = {
5050
val cl = getClass.getClassLoader
51-
println("Toolbox CL")
52-
println(cl.asInstanceOf[java.net.URLClassLoader])
53-
cl.asInstanceOf[java.net.URLClassLoader].getURLs().toList.foreach(println)
5451

5552
try {
5653
val toolboxImplCls = cl.loadClass("dotty.tools.dotc.quoted.ToolboxImpl")

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ object DottyPlugin extends AutoPlugin {
393393
): ScalaInstance = {
394394
val loader = state.classLoaderCache(all.toList)
395395
val loaderLibraryOnly = state.classLoaderCache(List(dottyLibrary, scalaLibrary))
396-
println("DottyPlugin lib: " + loaderLibraryOnly)
397396

398397
new ScalaInstance(
399398
dottyVersion,

0 commit comments

Comments
 (0)