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

How to call method called "match()"

1 reply
Grzegorz Kossakowski
Joined: 2009-01-28,
User offline. Last seen 42 years 45 weeks ago.

Hello,

I'm trying to call a method called match defined in some Java class.

Since match is keyword in Scala I cannot do it directly. Is there any work-around for such situations?

Grzegorz Kossakowski
Joined: 2009-01-28,
User offline. Last seen 42 years 45 weeks ago.
Re: How to call method called "match()"

Grzegorz Kossakowski pisze:
> Hello,
>
> I'm trying to call a method called match defined in some Java class.
>
> Since match is keyword in Scala I cannot do it directly. Is there any work-around for such situations?

On irc channel #scala pualp give me advice to enclose method named into `` which solves my problem.

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