Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SI-10081 Avoid diverging implicit scope search
Storing empty infos into the infoMap (thus avoiding recomputation) prevents the endless recursion. This is an alternative to #5734 that avoids the expensive annotation removal and the regression in pos/t1203a.scala.
- Loading branch information
Showing
3 changed files
with
7 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
t10081.scala:2: error: value x is not a member of B[X] | ||
trait B[X] extends A[B[X @unchecked]] { this.x } | ||
^ | ||
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,2 @@ | ||
trait A[_] | ||
trait B[X] extends A[B[X @unchecked]] { this.x } |