Skip to content

Commit 34aa51a

Browse files
committed
Add unit test to demonstrate the 1 cycle saving
1 parent 39aa513 commit 34aa51a

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object A {
2+
val a: Int = 0
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object B {
2+
val b = A.a
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object C {
2+
val c1 = B.b
3+
val c2: Int = 0;
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object D {
2+
val d: Int = C.c2
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object A {
2+
val a: String = ""
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
> compile
2+
3+
$ copy-file changes/A.scala A.scala
4+
> compile
5+
> checkIterations 4

0 commit comments

Comments
 (0)