forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve implicit parameter error message with aliases
Fixes scala#17122
- Loading branch information
1 parent
2dec682
commit b223c20
Showing
3 changed files
with
13 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,5 @@ | ||
-- [E172] Type Error: tests/neg/i17122.scala:7:14 ---------------------------------------------------------------------- | ||
7 |def test = m() // error | ||
| ^ | ||
| No given instance of type A was found for parameter of C | ||
| Where C is an alias of: (A) ?=> B |
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 @@ | ||
case class A() | ||
case class B() | ||
|
||
type C = A ?=> B | ||
def m(): C = ??? | ||
|
||
def test = m() // error |