Skip to content

Commit a942a9c

Browse files
committed
Address review
1 parent 4652b7b commit a942a9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/KernelImpl.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class KernelImpl(val rootContext: core.Contexts.Context, val rootPosition: util.
6363
val ctx2 = ctx.fresh.setNewTyperState().setTyper(new Typer)
6464
val tree = new Parser(SourceFile.virtual("tasty-reflect", code))(ctx2).block()
6565

66-
!ctx2.reporter.hasErrors && {
66+
if (ctx2.reporter.hasErrors) false
67+
else {
6768
ctx2.typer.typed(tree)(ctx2)
6869
!ctx2.reporter.hasErrors
6970
}

0 commit comments

Comments
 (0)