Aladdin - Scala Bugtracking
[#1185] project: compiler priority: low category: bug
submitter assigned to status date submitted
Burak _ _ 2007-06-19 08:36:17.0
subject scanner interprets NL in comment
code
object foo {
  val buul = (1 == 2) && /*
    some people like to add remarks in the middle of the code.

    */ 
    false
}
what happened
/tmp/gaga.scala:2: error: missing arguments for method && in class Boolean;
follow this method with `_' if you want to treat it as a partially applied function
  val buul = (1 == 2) && /*
                      ^
one error found
what expected no error! it's not the new line "after" the */ that causes the problem, because if you remove the newline before, the error disappears.
[back to overview]
Changes of this bug report