diff options
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i947.scala | 16 | ||||
-rw-r--r-- | tests/pos/implicits2.scala | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/pos/i947.scala b/tests/pos/i947.scala new file mode 100644 index 000000000..0f2d9e775 --- /dev/null +++ b/tests/pos/i947.scala @@ -0,0 +1,16 @@ +object Test { + + class c { + + private var x: Int = 0 + + override def equals(other: Any) = other match { + case o: c => x == o.x + case xs: List[c] => false + case ys: List[d18383] => false + case _ => false + } + + + } +} diff --git a/tests/pos/implicits2.scala b/tests/pos/implicits2.scala index 8e566c19f..a201ed5f9 100644 --- a/tests/pos/implicits2.scala +++ b/tests/pos/implicits2.scala @@ -16,4 +16,10 @@ object implicits2 { val x: scala.collection.immutable.WrappedString = "abc" + implicit val (xx: String, y: Int) = ("a", 22) + + def main(args: Array[String]) = { + println(implicitly[String]) + println(implicitly[Int]) + } } |