diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2015-11-18 00:39:05 +0900 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2015-11-18 00:39:05 +0900 |
commit | f9c8675be88426214a92c5f0202ff24c266bbf23 (patch) | |
tree | 41de5bc32c1338e2e902438793d22ce0547c7f8b /tests/pos | |
parent | 6b061b5b94fb4e13a97274b28e0ab9ac78b69f27 (diff) | |
parent | c595c56d834113f275f246d681f8acff42059254 (diff) | |
download | dotty-f9c8675be88426214a92c5f0202ff24c266bbf23.tar.gz dotty-f9c8675be88426214a92c5f0202ff24c266bbf23.tar.bz2 dotty-f9c8675be88426214a92c5f0202ff24c266bbf23.zip |
Merge pull request #962 from dotty-staging/fix-#947
Fix #947
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]) + } } |