aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-30 15:09:36 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-02 19:07:39 +0200
commit349c436348407b0e862e3feb65c959275549d86b (patch)
tree6bbe8daa3b3a89f6bd9a16adf8eb7b49b8863c5a /tests/disabled
parentdbe0456b740e841ddd35fd0d9802aff95c7c4426 (diff)
downloaddotty-349c436348407b0e862e3feb65c959275549d86b.tar.gz
dotty-349c436348407b0e862e3feb65c959275549d86b.tar.bz2
dotty-349c436348407b0e862e3feb65c959275549d86b.zip
Failing test
The test included here fails in backend.
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
+}