File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
compiler/test-resources/repl
sbt-dotty/src/dotty/tools/sbtplugin Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
scala> import quoted.Toolbox.Default._
2
-
3
2
scala> val v = '{ (if true then Some(1) else None).map(v => v+1) }
4
3
val v: quoted.Expr[Option[Int]] = Expr(<pickled tasty>)
5
-
6
4
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)))
9
6
scala> v.run
10
- val res1: Option[Int] = Some(2)
7
+ val res1: Option[Int] = Some(2)
Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ object Toolbox {
48
48
49
49
def make (implicit settings : Settings ): Toolbox = {
50
50
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)
54
51
55
52
try {
56
53
val toolboxImplCls = cl.loadClass(" dotty.tools.dotc.quoted.ToolboxImpl" )
Original file line number Diff line number Diff line change @@ -393,7 +393,6 @@ object DottyPlugin extends AutoPlugin {
393
393
): ScalaInstance = {
394
394
val loader = state.classLoaderCache(all.toList)
395
395
val loaderLibraryOnly = state.classLoaderCache(List (dottyLibrary, scalaLibrary))
396
- println(" DottyPlugin lib: " + loaderLibraryOnly)
397
396
398
397
new ScalaInstance (
399
398
dottyVersion,
You can’t perform that action at this time.
0 commit comments