diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-11 00:33:04 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-11 00:33:04 -0700 |
commit | 3707b09aa405150b5064fb2490dbd2632923ed16 (patch) | |
tree | 4f28e4242a6d941e672951386d38c49517face65 /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | 6c78a2800c2cd8fe709a290c3575e578ceb35eb0 (diff) | |
parent | bc9630e8265c00f1c6ed04e39f58e63b565e4934 (diff) | |
download | scala-3707b09aa405150b5064fb2490dbd2632923ed16.tar.gz scala-3707b09aa405150b5064fb2490dbd2632923ed16.tar.bz2 scala-3707b09aa405150b5064fb2490dbd2632923ed16.zip |
Merge pull request #2930 from retronym/topic/patmat-inference-prep
Topic/patmat inference prep
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index 1af176736b..695a1e2e24 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -285,8 +285,8 @@ trait TypeDiagnostics { case xs => xs map (_ => "_") mkString (clazz.name + "[", ",", "]") })+ "`" - "\nNote: if you intended to match against the class, try "+ caseString - + if (!clazz.exists) "" + else "\nNote: if you intended to match against the class, try "+ caseString } case class TypeDiag(tp: Type, sym: Symbol) extends Ordered[TypeDiag] { |