-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pending scripted test for zinc#616
Further minimize Fix comment
- Loading branch information
1 parent
be2bb54
commit a8a44a8
Showing
5 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
zinc/src/sbt-test/source-dependencies/default-namespace-implicit/Baz.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package sbt.zinc.example | ||
|
||
case class Baz(value: Int) |
8 changes: 8 additions & 0 deletions
8
zinc/src/sbt-test/source-dependencies/default-namespace-implicit/Foo.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
11 changes: 11 additions & 0 deletions
11
zinc/src/sbt-test/source-dependencies/default-namespace-implicit/changes/Foo.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
5 changes: 5 additions & 0 deletions
5
zinc/src/sbt-test/source-dependencies/default-namespace-implicit/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
7 changes: 7 additions & 0 deletions
7
zinc/src/sbt-test/source-dependencies/default-namespace-implicit/pending
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |