From 15fb8e160210e20ec9bec949f23e08ef045b1545 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 25 Jul 2016 09:45:50 +0200 Subject: Fix #1284: Make classTag depend directly on erasure In the end, a classTag reflects the erased version of a type. The only condition for its generation should be that the erasure is stable under possible instantiations. --- tests/run/i1284.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/run/i1284.scala (limited to 'tests/run/i1284.scala') diff --git a/tests/run/i1284.scala b/tests/run/i1284.scala new file mode 100644 index 000000000..f8b9de0de --- /dev/null +++ b/tests/run/i1284.scala @@ -0,0 +1,8 @@ +case object A +case object B + +object Test { + def main(args: Array[String]): Unit = { + assert(Array(A, B).deep.toString == "Array(A, B)") + } +} -- cgit v1.2.3