diff options
author | Micro Dotta <mirco.dotta@gmail.com> | 2011-09-07 08:38:21 +0000 |
---|---|---|
committer | Micro Dotta <mirco.dotta@gmail.com> | 2011-09-07 08:38:21 +0000 |
commit | 8e489f66eceb438167f8900bf897c8139d08347d (patch) | |
tree | 0ae29c8534b3ac8ba88ce67ac98330c6fd22f3b9 /src/compiler | |
parent | ac9243fb9e48dd3a4829cc3bf1caf7241d40b8af (diff) | |
download | scala-8e489f66eceb438167f8900bf897c8139d08347d.tar.gz scala-8e489f66eceb438167f8900bf897c8139d08347d.tar.bz2 scala-8e489f66eceb438167f8900bf897c8139d08347d.zip |
Fixed MissingRequirementError extractor (the re...
Fixed MissingRequirementError extractor (the return type of unapply
method went from Option[String] to Serializable during r25612). Review
by moors.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/internal/MissingRequirementError.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/reflect/internal/MissingRequirementError.scala b/src/compiler/scala/reflect/internal/MissingRequirementError.scala index f6be9fa8c6..fbbbcc1928 100644 --- a/src/compiler/scala/reflect/internal/MissingRequirementError.scala +++ b/src/compiler/scala/reflect/internal/MissingRequirementError.scala @@ -15,8 +15,8 @@ object MissingRequirementError { private val suffix = " not found." def signal(msg: String): Nothing = throw new MissingRequirementError(msg) def notFound(req: String): Nothing = signal(req + suffix) - def unapply(x: Throwable) = x match { - case x: MissingRequirementError => x.req + def unapply(x: Throwable): Option[String] = x match { + case x: MissingRequirementError => Some(x.req) case _ => None } } |