diff options
-rw-r--r-- | test/files/pos/patterns.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/patterns.scala b/test/files/pos/patterns.scala index f996f89725..93907e7d52 100644 --- a/test/files/pos/patterns.scala +++ b/test/files/pos/patterns.scala @@ -1,6 +1,6 @@ trait Option[+a] {} case class Some[a](x: a) extends Option[a] { - override def toString(): scala.String = "Some(" + x + ")"; + override def toString(): String = "Some(" + x + ")"; override def equals(that: Any): Boolean = that match { case Some(x) => this.x == x case _ => false @@ -8,7 +8,7 @@ case class Some[a](x: a) extends Option[a] { override def hashCode(): scala.Int = getClass().hashCode() * 41 + x.hashCode(); } case object None extends Option[All] { - override def toString(): scala.String = "None"; + override def toString(): String = "None"; override def equals(that: Any) = that match { case None => true case _ => false @@ -24,4 +24,4 @@ object test { case Some(x) => println(x); case None => println("nothing"); } -}
\ No newline at end of file +} |