Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject incomplete implicit dictionaries
If any RHS of a recursive implicit dictionary (after pruning) is an EmptyTree, then this indicates that implicit search failed and we should report the overall search as a failure. Fixes scala/bug#11591.
- Loading branch information
1 parent
e89bdde
commit a1d17e5
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
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
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,4 @@ | ||
byname-implicits-bug.scala:8: error: could not find implicit value for parameter e: Test.A | ||
implicitly[A] | ||
^ | ||
one error found |
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,9 @@ | ||
object Test { | ||
class A | ||
class B | ||
|
||
implicit def mkA(implicit b: => B): A = ??? | ||
implicit def mkB(implicit a: A, i: Int): B = ??? | ||
|
||
implicitly[A] | ||
} |