How do I exclude/rename some classes from import in Scala?

Posted by Alexey Romanov on Stack Overflow See other posts from Stack Overflow or by Alexey Romanov
Published on 2010-05-20T07:41:28Z Indexed on 2010/05/20 8:00 UTC
Read the original article Hit count: 260

Filed under:
|

Language FAQ says

import scala.collection.mutable.{_, Map => _, Set => _}

should import all classes from package scala.collection.mutable, except Map and Set. But it gives me this error:

error: '}' expected but ',' found.
       import scala.collection.mutable.{_, Map => _, Set => _}

Is there still a way to do this?

© Stack Overflow or respective owner

Related posts about scala

Related posts about scala-2.8