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

non significatif line break, break compilation

1 reply
david.bernard
Joined: 2009-01-08,
User offline. Last seen 1 year 27 weeks ago.
Hi,

the following code compile
  protected[xxx] def doStuff(...) = {}

but failed to compile if I insert line return after before def
  protected[xxx]
  def doStuff(...) = {}

Is it a bug (should I need to open a ticket) ??

also not that
  protected
  def doStuff(...) = {}

compile

Blair Zajac
Joined: 2009-01-12,
User offline. Last seen 42 years 45 weeks ago.
Re: non significatif line break, break compilation

David Bernard wrote:
> Hi,
>
> the following code compile
> protected[xxx] def doStuff(...) = {}
>
> but failed to compile if I insert line return after before def
> protected[xxx]
> def doStuff(...) = {}
>
> Is it a bug (should I need to open a ticket) ??
>
> also not that
> protected
> def doStuff(...) = {}

There's a ticket I opened a year ago:

http://lampsvn.epfl.ch/trac/scala/ticket/442

Regards,
Blair

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