Skip to content

Commit 533b035

Browse files
committed
Adapt own code to shadowing restriction
1 parent 5e8a595 commit 533b035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/compilerSupport.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import dotc.core.Comments.{ContextDoc, ContextDocstrings}
1818
* issues involving retrieving symbols defined in a previous run.
1919
*/
2020
def inCompilerContext[T](classpath: String, separateRun: Boolean = true, scalaSources: String*)(op: Context ?=> T): T =
21-
val compiler = Compiler()
21+
val compiler = new Compiler()
2222
val rootCtx = initCtx(classpath)
2323
val firstRun = compiler.newRun(using rootCtx)
2424
firstRun.compileFromStrings(scalaSources.toList)

0 commit comments

Comments
 (0)