diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-25 09:45:50 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-25 09:45:50 +0200 |
commit | 15fb8e160210e20ec9bec949f23e08ef045b1545 (patch) | |
tree | 874ebc9457a0ea2ea4b1c912c5698d998b678722 /tests | |
parent | 11f06fe8435c118a8476b2c197c1973ea4c647aa (diff) | |
download | dotty-15fb8e160210e20ec9bec949f23e08ef045b1545.tar.gz dotty-15fb8e160210e20ec9bec949f23e08ef045b1545.tar.bz2 dotty-15fb8e160210e20ec9bec949f23e08ef045b1545.zip |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/i1284.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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)") + } +} |