-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13886 from dotty-staging/fix-13838
Impose implicit search limit
- Loading branch information
Showing
13 changed files
with
232 additions
and
43 deletions.
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
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
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
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,26 @@ | ||
-- Error: tests/neg-custom-args/i13838.scala:10:5 ---------------------------------------------------------------------- | ||
10 | foo // error | ||
| ^ | ||
|no implicit argument of type Order[X] was found for parameter x$1 of method foo in object FooT | ||
| | ||
|where: X is a type variable | ||
|. | ||
|I found: | ||
| | ||
| FooT.OrderFFooA[F, A](FooT.OrderFFooA[F, A](/* missing */summon[Order[F[Foo[A]]]])) | ||
| | ||
|But given instance OrderFFooA in object FooT produces a diverging implicit search when trying to match type Order[F[Foo[A]]]. | ||
-- [E168] Type Warning: tests/neg-custom-args/i13838.scala:10:5 -------------------------------------------------------- | ||
10 | foo // error | ||
| ^ | ||
| Implicit search problem too large. | ||
| an implicit search was terminated with failure after trying 1000 expressions. | ||
| The root candidate for the search was: | ||
| | ||
| given instance OrderFFooA in object FooT for Order[Any]} | ||
| | ||
| You can change the behavior by setting the `-Ximplicit-search-limit` value. | ||
| Smaller values cause the search to fail faster. | ||
| Larger values might make a very large search problem succeed. | ||
|
||
longer explanation available when compiling with `-explain` |
Oops, something went wrong.