mirror of https://github.com/sbt/sbt.git
Merge remote-tracking branch 'gkossakowski/error-in-invalidated' into 0.13
This commit is contained in:
commit
53b4edd79f
|
|
@ -0,0 +1 @@
|
|||
incOptions := sbt.inc.IncOptions.Default
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
class A {
|
||||
// def initialized: Boolean = false
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
class A {
|
||||
def initialized: Boolean = false
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
> compile
|
||||
# comment out `initialized` method in A
|
||||
$ copy-file changes/A1.scala src/main/scala/A.scala
|
||||
# compilation of A.scala succeeds but B.scala gets invalidated (properly) and B.scala fails to compile
|
||||
-> compile
|
||||
# we change A.scala to its original shape so compilation should succeed again
|
||||
$ copy-file changes/A2.scala src/main/scala/A.scala
|
||||
# this fails at the moment due to use of stale class file for A, see #958 for details
|
||||
> compile
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
class A {
|
||||
def initialized: Boolean = false
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
class B {
|
||||
def foo(a: A): Boolean = a.initialized
|
||||
}
|
||||
Loading…
Reference in New Issue