A.scala
class A {
//def foo: Int = 153
}
class A2
B.scala
compile
- Uncomment line in
A.scala
compile. Both sources are recompiled because we have dependency introduced by inheritance between B.scala and A.scala. Name hashing is disabled for dependencies introduced by inheritance and incremental compiler track dependencies at source level so it cannot determine that change happened to A that B doesn't inherit from.