We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9644cf5 commit 2512562Copy full SHA for 2512562
compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -82,8 +82,9 @@ object Symbols {
82
def retainsDefTree(using Context): Boolean =
83
ctx.settings.YretainTrees.value ||
84
denot.owner.isTerm || // no risk of leaking memory after a run for these
85
- denot.isOneOf(InlineOrProxy) || // need to keep inline info
86
- ctx.settings.YcheckInit.value // initialization check
+ denot.isOneOf(InlineOrProxy) || // need to keep inline info
+ ctx.settings.YcheckInit.value || // initialization check
87
+ ctx.settings.YcheckInitGlobal.value // initialization check
88
89
/** The last denotation of this symbol */
90
private var lastDenot: SymDenotation = _
0 commit comments