summaryrefslogtreecommitdiff
path: root/test/pending/run/t1980.scala
diff options
context:
space:
mode:
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>
+