aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t6274.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t6274.scala')
-rw-r--r--tests/untried/pos/t6274.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/pos/t6274.scala b/tests/untried/pos/t6274.scala
new file mode 100644
index 000000000..cf769fc72
--- /dev/null
+++ b/tests/untried/pos/t6274.scala
@@ -0,0 +1,13 @@
+trait Crash {
+
+ def foo(i: => Int) (j: Int): Int
+
+ def t = {
+ // var count = 0
+ foo {
+ var count = 0
+ count
+ } _
+ }
+
+}