Merge remote-tracking branch 'gkossakowski/error-in-invalidated' into 0.13

This commit is contained in:
Mark Harrah 2013-11-06 10:22:50 -05:00
commit 53b4edd79f
6 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1 @@
incOptions := sbt.inc.IncOptions.Default

View File

@ -0,0 +1,3 @@
class A {
// def initialized: Boolean = false
}

View File

@ -0,0 +1,3 @@
class A {
def initialized: Boolean = false
}

View File

@ -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

View File

@ -0,0 +1,3 @@
class A {
def initialized: Boolean = false
}

View File

@ -0,0 +1,3 @@
class B {
def foo(a: A): Boolean = a.initialized
}