diff options
author | Burak Emir <emir@epfl.ch> | 2007-01-16 16:19:27 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-01-16 16:19:27 +0000 |
commit | 96376cd15412c66bcd30e9b397f211eec4e7bf35 (patch) | |
tree | 22d7685a6b0f0af0e182eb019ff00d07d1eac11d | |
parent | 9453e0350ee9d0dc6f24c92e06d29c533468b196 (diff) | |
download | scala-96376cd15412c66bcd30e9b397f211eec4e7bf35.tar.gz scala-96376cd15412c66bcd30e9b397f211eec4e7bf35.tar.bz2 scala-96376cd15412c66bcd30e9b397f211eec4e7bf35.zip |
warning only emitted with Xoutermatches option
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/PatternMatchers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala index b4ec46bf14..d3217c8672 100644 --- a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala +++ b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala @@ -1301,7 +1301,7 @@ print() cond = And(cond, Eq(Apply(Select( typed(gen.mkAsInstanceOf(selector.duplicate, ntpe, true)), outerAcc),List()), theRef)) - } else { + } else if(settings.XprintOuterMatches.value) { cunit.warning(node.pos, " no outer accessor for "+casted.tpe.symbol+" of type "+casted.tpe) } case _ => |