diff options
Diffstat (limited to 'tests/disabled/simplesams.scala')
-rw-r--r-- | tests/disabled/simplesams.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/disabled/simplesams.scala b/tests/disabled/simplesams.scala new file mode 100644 index 000000000..14a7ba6c0 --- /dev/null +++ b/tests/disabled/simplesams.scala @@ -0,0 +1,9 @@ +package test + +trait X { def foo(x: Int): Int; def bar = foo(2) } +trait XX extends X + +object test { + val x: X = (x: Int) => 2 // should be a closure + val xx: XX = (x: Int) => 2 // should be a closure, but blows up in backend +} |