summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-07-08 16:43:39 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-07-17 15:46:47 +0200
commitac6dcad89a0121d5c5c78e373fe691a56f1103d4 (patch)
tree25b3317bad46500bc6a77a2d1a51efaa2266a388 /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parenta7407468be46799619f1b7ebe1f0975f3a6c2dbb (diff)
downloadscala-ac6dcad89a0121d5c5c78e373fe691a56f1103d4.tar.gz
scala-ac6dcad89a0121d5c5c78e373fe691a56f1103d4.tar.bz2
scala-ac6dcad89a0121d5c5c78e373fe691a56f1103d4.zip
Extract the `makeNonSilent` method.
Setting the scene of removing the reporting mode bits from `contextMode`.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index 7bbd81118a..fdff2f3076 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -1494,8 +1494,7 @@ trait Namers extends MethodSynthesis {
case defn: MemberDef =>
val ainfos = defn.mods.annotations filterNot (_ eq null) map { ann =>
val ctx = typer.context
- val annCtx = ctx.make(ann)
- annCtx.setReportErrors()
+ val annCtx = ctx.makeNonSilent(ann)
// need to be lazy, #1782. beforeTyper to allow inferView in annotation args, SI-5892.
AnnotationInfo lazily {
enteringTyper(newTyper(annCtx) typedAnnotation ann)