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 35cbf65 commit cebef3bCopy full SHA for cebef3b
compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -556,9 +556,10 @@ object Symbols {
556
type ThisName = TypeName
557
558
/** If this is a top-level class, and if `-Yretain-trees` is set, return the TypeDef tree
559
- * for this class, otherwise EmptyTree.
+ * for this class, otherwise EmptyTree. This will force the info of the class.
560
*/
561
def tree(implicit ctx: Context): tpd.Tree /* tpd.TypeDef | tpd.EmptyTree */ = {
562
+ denot.info
563
// TODO: Consider storing this tree like we store lazy trees for inline functions
564
if (unpickler != null && !denot.isAbsent) {
565
assert(myTree.isEmpty)
0 commit comments