diff options
author | Paul Phillips <paulp@improving.org> | 2009-07-15 04:11:42 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-07-15 04:11:42 +0000 |
commit | 370817ac9736f67775a150f679bb5a4c01356ecb (patch) | |
tree | 773e97a8e54d0484228e13cd613b5fc248608e9f /test/files/run | |
parent | 93ba5d929347647d77e20f6e003f575b60ff8fda (diff) | |
download | scala-370817ac9736f67775a150f679bb5a4c01356ecb.tar.gz scala-370817ac9736f67775a150f679bb5a4c01356ecb.tar.bz2 scala-370817ac9736f67775a150f679bb5a4c01356ecb.zip |
Fix and test case for #1110.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug1110.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/bug1110.scala b/test/files/run/bug1110.scala new file mode 100644 index 0000000000..b0969f6aad --- /dev/null +++ b/test/files/run/bug1110.scala @@ -0,0 +1,11 @@ +class Stuff { + def zoop(p: Any{def &(q: Int): Int}) = p & 7 + def floop = new { def & = "Hello" } + + assert((floop &) == "Hello") + assert(zoop(10) == 2) +} + +object Test extends Application { + new Stuff +}
\ No newline at end of file |