- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
confusing caret position in compilation error
Sun, 2010-07-04, 08:08
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
Thu, 2010-07-08, 08:17
#2
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
Yes, seems odd.
On Sun, Jul 4, 2010 at 9:02 AM, Ittay Dror wrote:
> Option(1) getOrElse 2 getOrElse 3