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 ed386bd commit 016c5d7Copy full SHA for 016c5d7
compiler/src/dotty/tools/dotc/ast/untpd.scala
@@ -29,8 +29,10 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
29
}
30
31
object TypedSplice {
32
- def apply(tree: tpd.Tree)(implicit ctx: Context): TypedSplice =
33
- new TypedSplice(tree)(ctx.owner) {}
+ def apply(tree: tpd.Tree)(implicit ctx: Context): TypedSplice = {
+ val curOwner = ctx.owner // compute here to avoid space leak with a reference from TypedSplice to Context
34
+ new TypedSplice(tree)(curOwner) {}
35
+ }
36
37
38
/** mods object name impl */
0 commit comments