diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-17 11:34:16 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-07-17 15:50:17 +0200 |
commit | 338cfff69ea5cbd91f0cbb8f29d690f2069c0a00 (patch) | |
tree | 43c8f698c30ae2931f560b82fb74ffc9cdd62979 /src/compiler/scala/tools/nsc/typechecker/Infer.scala | |
parent | ecda1010416305e5d5cbf9ba0c7f90ddee8a9737 (diff) | |
download | scala-338cfff69ea5cbd91f0cbb8f29d690f2069c0a00.tar.gz scala-338cfff69ea5cbd91f0cbb8f29d690f2069c0a00.tar.bz2 scala-338cfff69ea5cbd91f0cbb8f29d690f2069c0a00.zip |
Reduce Context iface: inline trivial forwarders.
The overarching goal is to route all contextual reporting
through a single entry point: `context.reporter`.
The following commits take baby steps towards this goal.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Infer.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Infer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala index cb985ddaf6..69ac9ea61e 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala @@ -779,7 +779,7 @@ trait Infer extends Checkable { def applicableExpectingPt(pt: Type): Boolean = { val silent = context.makeSilent(reportAmbiguousErrors = false) val result = newTyper(silent).infer.isApplicable(undetparams, ftpe, argtpes0, pt) - if (silent.hasErrors && !pt.isWildcard) + if (silent.reportBuffer.hasErrors && !pt.isWildcard) applicableExpectingPt(WildcardType) // second try else result |