Skip to content

Commit

Permalink
Add pending scripted test for zinc#616
Browse files Browse the repository at this point in the history
Further minimize

Fix comment
  • Loading branch information
Friendseeker committed Dec 7, 2023
1 parent be2bb54 commit a8a44a8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package sbt.zinc.example

case class Baz(value: Int)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sbt.zinc.example.Baz
// Adding the below import to changes/Foo.scala and Foo.scala make issue go away
// import `package`.b
class Foo(implicit baz: Baz)

object Foo {
val f = new Foo
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sbt.zinc.example.Baz
// Adding the below import to changes/Foo.scala and Foo.scala make issue go away
// import `package`.b
class Foo(implicit baz: Baz)

object Foo {
val f = new Foo
}


// Random Placeholder comment to let Zinc detect that Foo has changed
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sbt.zinc.example.Baz

object `package` {
implicit val b = Baz(55)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
> compile

# Signal to Zinc that Foo is changed, such that it will be recompiled next
$ copy-file changes/Foo.scala Foo.scala

# fails with: `could not find implicit value for parameter baz: sbt.zinc.example.Baz`
> compile

0 comments on commit a8a44a8

Please sign in to comment.