-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scalac does not respect an implicit def when recompiling #5639
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5639?orig=1 |
DaveScala (davescala) said: Object level imports compiles over and over again package pack.age
object Quux {
import pack.age.Implicits._
def baz : Baz = 1
} More info on scala-user list: |
@phaller said: |
@retronym said (edited on May 18, 2012 9:42:30 PM UTC): ~/code/scratch/20120518 cat Bar.scala
import Implicits._
class Baz
object Test {
implicitly[Int]
}
object Implicits {
implicit val Baz: Int = 0
}
~/code/scratch/20120518 rm -rf out/*
~/code/scratch/20120518 scalac210 -language:implicitConversions -d out -classpath out Bar.scala
~/code/scratch/20120518 scalac210 -language:implicitConversions -d out -classpath out Bar.scala
Bar.scala:6: error: could not find implicit value for parameter e: Int
implicitly[Int]
^
one error found |
@adriaanm said: |
@adriaanm said: |
@adriaanm said: |
@gkossakowski said: |
@retronym said: |
@retronym said: |
@retronym said: |
Given
src/main/scala/pack/age/Foo.scala
hello
and src/main/scala/pack/age/Bar.scala:
When first run,
scalac src/main/scala/pack/age/Foo.scala src/main/scala/pack/age/Bar.scala
compiles both fine, and places the class files in thepack
directory.However, if rerun,
scalac src/main/scala/pack/age/Foo.scala src/main/scala/pack/age/Bar.scala
fails with the following error:This is a simplification of the bug reported in a stackoverflow question (http://stackoverflow.com/questions/9959199/error-in-scala-maven-recompilation-without-code-change). All the above code can be downloaded from github.
The text was updated successfully, but these errors were encountered: