Skip to content

Commit 298a3e8

Browse files
committed
Evaluate annotations before completing tree of definitions
Motive: That way we can identify annotation macros without special name resolution rules. This was surprisingly easy.
1 parent 134ad7a commit 298a3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ class Namer { typer: Typer =>
562562
* to pick up the context at the point where the completer was created.
563563
*/
564564
def completeInCreationContext(denot: SymDenotation): Unit = {
565-
denot.info = typeSig(denot.symbol)
566565
addAnnotations(denot)
566+
denot.info = typeSig(denot.symbol)
567567
Checking.checkWellFormed(denot.symbol)
568568
}
569569
}

0 commit comments

Comments
 (0)