summaryrefslogtreecommitdiff
path: root/test/files/run/t7223.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t7223.scala')
-rw-r--r--test/files/run/t7223.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t7223.scala b/test/files/run/t7223.scala
new file mode 100644
index 0000000000..a707e957df
--- /dev/null
+++ b/test/files/run/t7223.scala
@@ -0,0 +1,11 @@
+class D(val a: () => Int => () => Any) {
+ a()(0)()
+}
+
+object Crash extends D(() => {
+ (x: Int) => {() => { new { println(x.toString) } }}
+})
+
+object Test extends App {
+ Crash
+}