diff options
-rw-r--r-- | src/library/scala/MatchError.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/MatchError.scala b/src/library/scala/MatchError.scala index 4979df8717..04463cd5b3 100644 --- a/src/library/scala/MatchError.scala +++ b/src/library/scala/MatchError.scala @@ -37,4 +37,7 @@ final class MatchError(msg: String) extends Error(msg) { this(" in '" + source + "' at line " + line); def this(source: String, line: Int, obj: String) = this("for object " + obj + " in '" + source + "' at line " + line); + + def this(ob:Any) = + this(ob.toString()); } |