Skip to content

Commit

Permalink
Further minimize
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendseeker committed Dec 7, 2023
1 parent 8c52215 commit 9f63042
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 28 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import sbt.zinc.example._

class Foo(implicit bar: Bar) {
def show = println(bar.x)
}
import sbt.zinc.example.Baz
// Adding the below import makes issue to changes/Foo.scala and Foo.scala make issue go away
// import `package`.b
class Foo(implicit baz: Baz)

object Foo {
def main = {
val f = new Foo
f.show
}
val f = new Foo
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import sbt.zinc.example._

class Foo(implicit bar: Bar) {
def show = println(bar.x)
}
import sbt.zinc.example.Baz
// Adding the below import makes issue to changes/Foo.scala and Foo.scala make issue go away
// import `package`.b
class Foo(implicit baz: Baz)

object Foo {
def main = {
val f = new Foo
f.show
}
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
Expand Up @@ -3,5 +3,5 @@
# 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 bar: sbt.zinc.example.Bar`
# fails with: `could not find implicit value for parameter baz: sbt.zinc.example.Baz`
> compile

0 comments on commit 9f63042

Please sign in to comment.