Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pending scripted test for #616 #1305

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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