File tree 6 files changed +25
-13
lines changed
sbt-dotty/sbt-test/source-dependencies/export-clauses
6 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1
- class A (val c : C ) {
2
- export c ._
3
- }
4
-
5
- object A {
6
- def create : A = new A (new C ())
1
+ class A {
2
+ val b : B = new B
3
+ export b ._
7
4
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import complete .DefaultParsers ._
2
+
3
+ val checkIterations = inputKey[Unit ](" Verifies the accumlated number of iterations of incremental compilation." )
4
+
5
+ checkIterations := {
6
+ val analysis = (compile in Compile ).value.asInstanceOf [sbt.internal.inc.Analysis ]
7
+
8
+ val expected : Int = (Space ~> NatBasic ).parsed
9
+ val actual : Int = analysis.compilations.allCompilations.size
10
+ assert(expected == actual, s " Expected $expected compilations, got $actual" )
11
+ }
12
+
Original file line number Diff line number Diff line change 1
1
class B {
2
- val x : String = " x"
2
+ val x : Int = 23
3
+ val y : Int = 30
3
4
}
Original file line number Diff line number Diff line change 1
1
> compile
2
2
$ copy-file changes/B1.scala B.scala
3
- # Compilation of D.scala should fail because the signature of B.x changed
4
- -> compile
3
+ > compile
4
+ # This should be 3 because of:
5
+ # 1. the first `compile` call
6
+ # 2. the recompilation of B.scala
7
+ # 3. this recompilation triggering a recompilation of A.scala
8
+ # because B has a new member and A does a wildcard export
9
+ # of a value of type B.
10
+ > checkIterations 3
You can’t perform that action at this time.
0 commit comments