-
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.
Put all code in import suggestions under a try-catch
There was a val that escaped before, which caused cyclic references raised during importSuggestions to be reported instead of being ignored.
- Loading branch information
Showing
2 changed files
with
8 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
-- [E046] Cyclic Error: tests/neg/i11994.scala:3:18 -------------------------------------------------------------------- | ||
-- [E008] Not Found Error: tests/neg/i11994.scala:2:28 ----------------------------------------------------------------- | ||
2 |implicit def foo[T <: Tuple.meow]: Unit = ??? // error | ||
| ^^^^^^^^^^ | ||
| type meow is not a member of object Tuple | ||
-- [E008] Not Found Error: tests/neg/i11994.scala:3:18 ----------------------------------------------------------------- | ||
3 |given [T <: Tuple.meow]: Unit = ??? // error | ||
| ^ | ||
| Cyclic reference involving method given_Unit | ||
| | ||
| The error occurred while trying to compute the signature of given instance given_Unit | ||
| which required to compute the signature of type T | ||
| which required to compute the signature of given instance given_Unit | ||
| | ||
| Run with both -explain-cyclic and -Ydebug-cyclic to see full stack trace. | ||
| | ||
| longer explanation available when compiling with `-explain` | ||
| ^^^^^^^^^^ | ||
| type meow is not a member of object Tuple |