From 506a5e334d57084322fa89119d72fa96beb824b6 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 15 Jun 2015 17:50:04 +0200 Subject: Enable tests that succeed. --- tests/run/t8823.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/run/t8823.scala (limited to 'tests/run/t8823.scala') diff --git a/tests/run/t8823.scala b/tests/run/t8823.scala new file mode 100644 index 000000000..06e3bff69 --- /dev/null +++ b/tests/run/t8823.scala @@ -0,0 +1,10 @@ +class Tuple2Int(val encoding: Long) extends AnyVal with Product2[Int, Int] { + def canEqual(that: Any) = false + def _1: Int = 1 + def _2: Int = 2 +} + +object Test extends dotty.runtime.LegacyApp { + assert(new Tuple2Int(0)._1 == 1) + assert(new Tuple2Int(0)._2 == 2) +} -- cgit v1.2.3