Skip to content

Commit

Permalink
Merge pull request #1305 from Friendseeker/default-namespace-implicit
Browse files Browse the repository at this point in the history
Add pending scripted test for #616
  • Loading branch information
eed3si9n committed Dec 19, 2023
2 parents 150ed32 + a8a44a8 commit 1c809a6
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 1c809a6

Please sign in to comment.