Skip to content

Commit

Permalink
Add unit test to demonstrate the 1 cycle saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Sep 23, 2024
1 parent 39aa513 commit 34aa51a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object A {
val a: Int = 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object B {
val b = A.a
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
object C {
val c1 = B.b
val c2: Int = 0;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object D {
val d: Int = C.c2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object A {
val a: String = ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> compile

$ copy-file changes/A.scala A.scala
> compile
> checkIterations 4

0 comments on commit 34aa51a

Please sign in to comment.