aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/nested-fn-print.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/nested-fn-print.scala')
-rw-r--r--tests/untried/neg/nested-fn-print.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg/nested-fn-print.scala b/tests/untried/neg/nested-fn-print.scala
new file mode 100644
index 000000000..c599a235a
--- /dev/null
+++ b/tests/untried/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"
+ }
+}