try:
if (true) msg.replyTo(1L)


On Fri, May 1, 2009 at 2:32 PM, Vassil Dichev <[email protected]> wrote:

> Fastest way to reproduce:
>
> In ESME directory, invoke
>
> mvn scala:console
>
> Then execute the following commands ("scala>" denotes a new prompt)
>
> scala> import org.apache.esme.model.Message
> scala> val msg = Message.create
> scala> if(true) msg.replyTo(1)
>
> This should raise the following error message:
>
> <console>:7: error: value apply is not a member of Long
>       if(true) msg.replyTo(1)
>
> The weirdest thing, though, is that this works!
>
> scala> msg.replyTo(1)
>
> Whatever the problem is, how could it be that a statement works fine
> on its own, but doesn't even compile when it's in an "if" statement?
>
> Sounds like a compiler bug to me.
>
> Is anyone able to reproduce this? Any ideas- maybe David?
>
> When I have some time to gather information and if I confirm it's a
> compiler bug, I'll report to the scala lang developers.
>
>
> Vassil
>



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

Reply via email to