diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-05-04 22:03:22 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-05-04 22:03:22 +0200 |
commit | c4dba2420be56e628e37732a3369533951cc7ef1 (patch) | |
tree | 531b4f22bc8be035a765c51d9b0cd1417dfd5aef /tests/disabled | |
parent | 7c8693b62bfa73a47eb781bf0e372f68acc0db52 (diff) | |
parent | 349c436348407b0e862e3feb65c959275549d86b (diff) | |
download | dotty-c4dba2420be56e628e37732a3369533951cc7ef1.tar.gz dotty-c4dba2420be56e628e37732a3369533951cc7ef1.tar.bz2 dotty-c4dba2420be56e628e37732a3369533951cc7ef1.zip |
Merge pull request #509 from dotty-staging/add/expandSAMs
Expand SAM closures to anonymous classes if needed
Diffstat (limited to 'tests/disabled')
-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 +} |