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 06250cd commit fb15858Copy full SHA for fb15858
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2432,7 +2432,7 @@ class Typer extends Namer
2432
case tree: untpd.Bind => typedBind(tree, pt)
2433
case tree: untpd.ValDef =>
2434
if (tree.isEmpty) tpd.EmptyValDef
2435
- else typedValDef(tree, sym)(using ctx.localContext(tree, sym).setNewScope)
+ else typedValDef(tree, sym)(using ctx.localContext(tree, sym))
2436
case tree: untpd.DefDef =>
2437
val typer1 = localTyper(sym)
2438
typer1.typedDefDef(tree, sym)(using ctx.localContext(tree, sym).setTyper(typer1))
0 commit comments