diff options
author | Martin Odersky <odersky@gmail.com> | 2016-05-10 23:28:16 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-05-10 23:28:16 +0200 |
commit | 298a3e87823ab83a807ba80cc6563e50088c16da (patch) | |
tree | 21d249b4ea64747bdf9e190991f98e09b03a4ecd /src/dotty/tools/dotc/typer/Namer.scala | |
parent | 134ad7a6a172fec97dc438dd0aff3766a0f0944a (diff) | |
download | dotty-298a3e87823ab83a807ba80cc6563e50088c16da.tar.gz dotty-298a3e87823ab83a807ba80cc6563e50088c16da.tar.bz2 dotty-298a3e87823ab83a807ba80cc6563e50088c16da.zip |
Evaluate annotations before completing tree of definitions
Motive: That way we can identify annotation macros without special
name resolution rules.
This was surprisingly easy.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Namer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Namer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index 82b3b56e9..d9da2b0ad 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -562,8 +562,8 @@ class Namer { typer: Typer => * to pick up the context at the point where the completer was created. */ def completeInCreationContext(denot: SymDenotation): Unit = { - denot.info = typeSig(denot.symbol) addAnnotations(denot) + denot.info = typeSig(denot.symbol) Checking.checkWellFormed(denot.symbol) } } |