This page is no longer maintained — Please continue to the home page at www.scala-lang.org

confusing caret position in compilation error

2 replies
Ittay Dror 2
Joined: 2010-05-05,
User offline. Last seen 42 years 45 weeks ago.

scala> Option(1) getOrElse 2 getOrElse 3
:6: error: value getOrElse is not a member of Int
Option(1) getOrElse 2 getOrElse 3
^

Shouldn't the caret (^) point at the second getOrElse?

Ittay

Johannes Rudolph 2
Joined: 2010-02-12,
User offline. Last seen 42 years 45 weeks ago.
Re: confusing caret position in compilation error

Yes, seems odd.

On Sun, Jul 4, 2010 at 9:02 AM, Ittay Dror wrote:
> Option(1) getOrElse 2 getOrElse 3

Johannes Rudolph 2
Joined: 2010-02-12,
User offline. Last seen 42 years 45 weeks ago.
Re: confusing caret position in compilation error

This is fixed in the greenhouse and will probably make it into trunk eventually.

Am 04.07.2010 12:58 schrieb "Johannes Rudolph" <johannes [dot] rudolph [at] googlemail [dot] com>:

Yes, seems odd.


On Sun, Jul 4, 2010 at 9:02 AM, Ittay Dror <ittay [dot] dror [at] gmail [dot] com> wrote:
> Option(1) getOrElse 2 ge...

--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland