Aladdin - Scala Bugtracking
[#237] project: specification priority: low category: bug
submitter assigned to status date submitted
Burak Martin won't fix 2003-11-26 11:55:06.0
subject operator parsing
code
object op {
  class foo(x:int) {
    def %(xs:int*) = {}
  }
  new foo( 3 ).% (1,2,3) // works
  new foo( 3 ) % (1,2,3) // works not
}
what happened
op.scala:6: `)' expected
  new foo( 3 ) % (1,2,3) // works not
                   ^
one error found
what expected a op b being syntactic sugar for a.op(b) - also for star arguments.
[back to overview]
Changes of this bug report
Martin  edited on  2004-01-05 17:33:59.0
Operators are by definition binary methods, so tuples on either side are not permitted.