From 917f58fe1de3f0237c9133ccda462f8af52124f8 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 21 Nov 2014 18:28:25 +0100 Subject: 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. --- tests/pos/printbounds.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/printbounds.scala (limited to 'tests/pos/printbounds.scala') 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. + +} -- cgit v1.2.3