aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-05-04 22:03:22 +0200
committerDmitry Petrashko <dark@d-d.me>2015-05-04 22:03:22 +0200
commitc4dba2420be56e628e37732a3369533951cc7ef1 (patch)
tree531b4f22bc8be035a765c51d9b0cd1417dfd5aef /tests/disabled
parent7c8693b62bfa73a47eb781bf0e372f68acc0db52 (diff)
parent349c436348407b0e862e3feb65c959275549d86b (diff)
downloaddotty-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.scala9
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
+}