diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-12 09:17:26 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-12 10:06:00 -0800 |
commit | ccb590c0378819011640a58b822fbdeb938144dc (patch) | |
tree | 6b92649121c4fdbfe851d266a5002d8eb892ff34 /test/files/neg/nested-fn-print.scala | |
parent | 15372027c762b18bccf231b9810e9db3415e7f5a (diff) | |
download | scala-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.scala | 11 |
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" + } +} |