summaryrefslogtreecommitdiff
path: root/test/files/neg/nested-fn-print.check
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.check
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.check')
-rw-r--r--test/files/neg/nested-fn-print.check20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/neg/nested-fn-print.check b/test/files/neg/nested-fn-print.check
new file mode 100644
index 0000000000..ea278554d4
--- /dev/null
+++ b/test/files/neg/nested-fn-print.check
@@ -0,0 +1,20 @@
+nested-fn-print.scala:4: error: only classes can have declared but undefined members
+(Note that variables need to be initialized to be defined)
+ var x3: Int => Double
+ ^
+nested-fn-print.scala:7: error: type mismatch;
+ found : String("a")
+ required: Int => (Float => Double)
+ x1 = "a"
+ ^
+nested-fn-print.scala:8: error: type mismatch;
+ found : String("b")
+ required: (Int => Float) => Double
+ x2 = "b"
+ ^
+nested-fn-print.scala:9: error: type mismatch;
+ found : String("c")
+ required: Int => Double
+ x3 = "c"
+ ^
+four errors found