aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index 4c7d1c50d..885bc56d6 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -1359,10 +1359,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
case tree1: TypeTree => tree1 // no change owner necessary here ...
case tree1: Ident => tree1 // ... or here
case tree1 =>
- if (ctx.owner ne tree.owner) {
- println(i"changing owner of $tree1 from ${tree.owner} to ${ctx.owner}")
- tree1.changeOwner(tree.owner, ctx.owner)
- }
+ if (ctx.owner ne tree.owner) tree1.changeOwner(tree.owner, ctx.owner)
else tree1
}