After checking out https://github.com/alexeyr/scala-time, I can
compile it once (using `mvn compile`). However, touching
src/main/scala/org/scala_tools/time/Implicits.scala and running `mvn
compile` again produces 56 errors similar to
[ERROR] F:\MyProgramming\scala-time\src\main\scala\org\scala_tools\time\StaticDateTime.scala:29:
error: value second is not a member of Int
[ERROR] def nextSecond = now + 1.second
For some reason, they don't use the implicits defined in
Implicits.scala, even though they can access it (there is no
object Implicits is not a member of package org.scala_tools.time
error). This can be reproduced with SBT:
sbt clean; sbt compile;
change Implicits.scala enough to produce different classes (e.g. add a
line "object Implicits2 extends Implicits")
sbt compile
But to make things even weirder, SBT produces a competely different
set of 24 errors!
Rampion at Stack Overflow was also able to reproduce it using scalac
directly: http://stackoverflow.com/a/9964884/9204
So, is it a bug? And if so, where: scalac or SBT and scala-maven-plugin?
Yours, Alexey Romanov
Yours, Alexey Romanov
Thanks for creating the isolated test case, this is great.
Johannes
--
Johannes
-----------------------------------------------
Johannes Rudolph
http://virtual-void.net
Yours, Alexey Romanov
Yours, Alexey Romanov