Skip to content

Commit a5ae15e

Browse files
committed
Add class annotations as first step of completing the class.
1 parent 428642a commit a5ae15e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,8 @@ class Namer { typer: Typer =>
670670
ok
671671
}
672672

673+
addAnnotations(denot)
674+
673675
val selfInfo =
674676
if (self.isEmpty) NoType
675677
else if (cls.is(Module)) {
@@ -699,7 +701,6 @@ class Namer { typer: Typer =>
699701

700702
index(rest)(inClassContext(selfInfo))
701703
denot.info = ClassInfo(cls.owner.thisType, cls, parentRefs, decls, selfInfo)
702-
addAnnotations(denot)
703704
Checking.checkWellFormed(cls)
704705
if (isDerivedValueClass(cls)) cls.setFlag(Final)
705706
cls.setApplicableFlags(

0 commit comments

Comments
 (0)