1

I'm trying to compile the AtomicScala example:

scalac AtomicTest.scala

I get the error:

AtomicTest.scala:9: error: not found: object language 
import language.implicitConversions._
       ^

I'm a complete novice so any help is much appreciated. PS Scala compiler version 2.9.2

schoon
  • 2,858
  • 3
  • 46
  • 78
  • SOLUTION: I update scala as per wheaties answer, using the instructions [here](http://askubuntu.com/questions/555043/about-installing-scala-2-11-4) – schoon Jun 15 '16 at 06:33

1 Answers1

3

During the evolution of Scala, several things were moved to compiler flags and imports as they were deemed to "advanced" and "complicated" for the general community. This was to streamline the language and reduce complexity for newer developers. This was not the case in Scala 2.9.x. You don't need that import. That said, if you're trying to follow a coding example, why not switch to a more modern version, like 2.11.8?

wheaties
  • 35,646
  • 15
  • 94
  • 131