Skip to content

Commit fb15858

Browse files
committed
Omit unnecessary setNewScope
1 parent 06250cd commit fb15858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ class Typer extends Namer
24322432
case tree: untpd.Bind => typedBind(tree, pt)
24332433
case tree: untpd.ValDef =>
24342434
if (tree.isEmpty) tpd.EmptyValDef
2435-
else typedValDef(tree, sym)(using ctx.localContext(tree, sym).setNewScope)
2435+
else typedValDef(tree, sym)(using ctx.localContext(tree, sym))
24362436
case tree: untpd.DefDef =>
24372437
val typer1 = localTyper(sym)
24382438
typer1.typedDefDef(tree, sym)(using ctx.localContext(tree, sym).setTyper(typer1))

0 commit comments

Comments
 (0)