diff options
author | Martin Odersky <odersky@gmail.com> | 2014-11-21 18:28:25 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-11-24 14:57:49 +0100 |
commit | 917f58fe1de3f0237c9133ccda462f8af52124f8 (patch) | |
tree | 3655173fa3fafaeb0fd90de888f940021fa6e0ba /tests/pos/printbounds.scala | |
parent | a468a864dcdb89091985c194737968a979e874fb (diff) | |
download | dotty-917f58fe1de3f0237c9133ccda462f8af52124f8.tar.gz dotty-917f58fe1de3f0237c9133ccda462f8af52124f8.tar.bz2 dotty-917f58fe1de3f0237c9133ccda462f8af52124f8.zip |
Better printing of variant types with wildcard arguments.
We used to approximate these by their bounds, but this is confusing.
See comment in printbounds.scala.
Diffstat (limited to 'tests/pos/printbounds.scala')
-rw-r--r-- | tests/pos/printbounds.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/printbounds.scala b/tests/pos/printbounds.scala new file mode 100644 index 000000000..7499b8503 --- /dev/null +++ b/tests/pos/printbounds.scala @@ -0,0 +1,11 @@ +class Tree[-T >: Number] + + +class Test { + + val x: Tree[_] = ??? + + val y = x // With -Xprint:front this should print val x: Tree[_] = x + // used to print Tree[Nothing], which is confusing. + +} |