summaryrefslogtreecommitdiff
path: root/test/pending/run/t1980.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-10-07 14:10:34 +0000
committerMartin Odersky <odersky@gmail.com>2009-10-07 14:10:34 +0000
commit9f121f57e034a7feb07bad7f67403f3ac75b46d4 (patch)
treedd68aed8983422a39dbc867397762a7bc5e5a9f8 /test/pending/run/t1980.scala
parentad62d9f8b00d328c099268366ae05c5122915fa6 (diff)
downloadscala-9f121f57e034a7feb07bad7f67403f3ac75b46d4.tar.gz
scala-9f121f57e034a7feb07bad7f67403f3ac75b46d4.tar.bz2
scala-9f121f57e034a7feb07bad7f67403f3ac75b46d4.zip
Fixed #1000, #2060
Diffstat (limited to 'test/pending/run/t1980.scala')
-rw-r--r--test/pending/run/t1980.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/run/t1980.scala b/test/pending/run/t1980.scala
index 7c5737f95e..67cb3ada9e 100644
--- a/test/pending/run/t1980.scala
+++ b/test/pending/run/t1980.scala
@@ -1,3 +1,10 @@
+by-name argument incorrectly evaluated on :-ending operator
+Reported by: extempore Owned by: odersky
+Priority: normal Component: Compiler
+Keywords: Cc: paulp@…
+Fixed in version:
+Description
+
scala> def foo() = { println("foo") ; 5 }
foo: ()Int
@@ -11,3 +18,10 @@ scala> c m1 foo()
scala> foo() m2_: c
foo
+
+But it is not evaluated if invoked directly:
+
+scala> c.m2_:(foo())
+
+scala>
+