From 9f121f57e034a7feb07bad7f67403f3ac75b46d4 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 7 Oct 2009 14:10:34 +0000 Subject: Fixed #1000, #2060 --- test/pending/run/t1980.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/pending/run/t1980.scala') 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> + -- cgit v1.2.3