We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 216a89a commit b386fbdCopy full SHA for b386fbd
compiler/src/dotty/tools/repl/ParseResult.scala
@@ -110,7 +110,8 @@ object ParseResult {
110
111
private def parseStats(sourceCode: String)(implicit ctx: Context): List[untpd.Tree] = {
112
val source = new SourceFile("<console>", sourceCode)
113
- val parser = new Parser(source)
+ val ctx1 = ctx.fresh.setSource(source)
114
+ val parser = new Parser(source)(ctx1)
115
val stats = parser.blockStatSeq()
116
parser.accept(Tokens.EOF)
117
stats
0 commit comments