summaryrefslogtreecommitdiff
path: root/test/files/neg/nested-fn-print.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-01-12 09:17:26 -0800
committerPaul Phillips <paulp@improving.org>2012-01-12 10:06:00 -0800
commitccb590c0378819011640a58b822fbdeb938144dc (patch)
tree6b92649121c4fdbfe851d266a5002d8eb892ff34 /test/files/neg/nested-fn-print.scala
parent15372027c762b18bccf231b9810e9db3415e7f5a (diff)
downloadscala-ccb590c0378819011640a58b822fbdeb938144dc.tar.gz
scala-ccb590c0378819011640a58b822fbdeb938144dc.tar.bz2
scala-ccb590c0378819011640a58b822fbdeb938144dc.zip
Disambiguate some type printing.
Functions of functions use parens for grouping.
Diffstat (limited to 'test/files/neg/nested-fn-print.scala')
-rw-r--r--test/files/neg/nested-fn-print.scala11
1 files changed, 11 insertions, 0 deletions
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"
+ }
+}