From ccb590c0378819011640a58b822fbdeb938144dc Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 12 Jan 2012 09:17:26 -0800 Subject: Disambiguate some type printing. Functions of functions use parens for grouping. --- test/files/neg/nested-fn-print.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/neg/nested-fn-print.scala (limited to 'test/files/neg/nested-fn-print.scala') diff --git a/test/files/neg/nested-fn-print.scala b/test/files/neg/nested-fn-print.scala new file mode 100644 index 0000000000..9a4bd162c0 --- /dev/null +++ b/test/files/neg/nested-fn-print.scala @@ -0,0 +1,11 @@ +object Test { + var x1: Int => Float => Double = _ + var x2: (Int => Float) => Double = _ + var x3: Int => Double + + def main(args: Array[String]): Unit = { + x1 = "a" + x2 = "b" + x3 = "c" + } +} -- cgit v1.2.3