@@ -1929,8 +1929,7 @@ trait Typers extends Modes with Adaptations with Tags {
1929
1929
*/
1930
1930
def typedTemplate (templ : Template , parents1 : List [Tree ]): Template = {
1931
1931
val clazz = context.owner
1932
- // complete lazy annotations
1933
- val annots = clazz.annotations
1932
+ clazz.annotations.map(_.completeInfo)
1934
1933
if (templ.symbol == NoSymbol )
1935
1934
templ setSymbol clazz.newLocalDummy(templ.pos)
1936
1935
val self1 = templ.self match {
@@ -2025,8 +2024,7 @@ trait Typers extends Modes with Adaptations with Tags {
2025
2024
val typer1 = constrTyperIf(sym.isParameter && sym.owner.isConstructor)
2026
2025
val typedMods = typedModifiers(vdef.mods)
2027
2026
2028
- // complete lazy annotations
2029
- val annots = sym.annotations
2027
+ sym.annotations.map(_.completeInfo)
2030
2028
var tpt1 = checkNoEscaping.privates(sym, typer1.typedType(vdef.tpt))
2031
2029
checkNonCyclic(vdef, tpt1)
2032
2030
@@ -2269,8 +2267,7 @@ trait Typers extends Modes with Adaptations with Tags {
2269
2267
val tparams1 = ddef.tparams mapConserve typedTypeDef
2270
2268
val vparamss1 = ddef.vparamss mapConserve (_ mapConserve typedValDef)
2271
2269
2272
- // complete lazy annotations
2273
- val annots = meth.annotations
2270
+ meth.annotations.map(_.completeInfo)
2274
2271
2275
2272
for (vparams1 <- vparamss1; vparam1 <- vparams1 dropRight 1 )
2276
2273
if (isRepeatedParamType(vparam1.symbol.tpe))
@@ -2345,8 +2342,7 @@ trait Typers extends Modes with Adaptations with Tags {
2345
2342
reenterTypeParams(tdef.tparams)
2346
2343
val tparams1 = tdef.tparams mapConserve typedTypeDef
2347
2344
val typedMods = typedModifiers(tdef.mods)
2348
- // complete lazy annotations
2349
- val annots = tdef.symbol.annotations
2345
+ tdef.symbol.annotations.map(_.completeInfo)
2350
2346
2351
2347
// @specialized should not be pickled when compiling with -no-specialize
2352
2348
if (settings.nospecialization.value && currentRun.compiles(tdef.symbol)) {
@@ -5253,8 +5249,6 @@ trait Typers extends Modes with Adaptations with Tags {
5253
5249
def typedPackageDef (pdef : PackageDef ) = {
5254
5250
val pid1 = typedQualifier(pdef.pid).asInstanceOf [RefTree ]
5255
5251
assert(sym.moduleClass ne NoSymbol , sym)
5256
- // complete lazy annotations
5257
- val annots = sym.annotations
5258
5252
val stats1 = newTyper(context.make(tree, sym.moduleClass, sym.info.decls))
5259
5253
.typedStats(pdef.stats, NoSymbol )
5260
5254
treeCopy.PackageDef (tree, pid1, stats1) setType NoType
0 commit comments