-
Notifications
You must be signed in to change notification settings - Fork 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 #11527 from dotty-staging/fix-11350
Don't synthesize context functions with embedded wildcards
- Loading branch information
Showing
7 changed files
with
36 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- [E081] Type Error: tests/neg/i11350.scala:1:39 ---------------------------------------------------------------------- | ||
1 |class A1[T](action: A1[T] ?=> String = "") // error | ||
| ^ | ||
| Missing parameter type | ||
| | ||
| I could not infer the type of the parameter evidence$1. | ||
| What I could infer was: A1[<?>] | ||
-- [E081] Type Error: tests/neg/i11350.scala:2:39 ---------------------------------------------------------------------- | ||
2 |class A2[T](action: A1[T] ?=> String = summon[A1[T]]) // error | ||
| ^ | ||
| Missing parameter type | ||
| | ||
| I could not infer the type of the parameter evidence$2. | ||
| What I could infer was: A1[<?>] |
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 @@ | ||
class A1[T](action: A1[T] ?=> String = "") // error | ||
class A2[T](action: A1[T] ?=> String = summon[A1[T]]) // error |
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 @@ | ||
case class A[T](action: A[T] ?=> String) // error | ||
|
||
class A1[T](action: A1[T] ?=> String = (_: A1[T]) ?=> "") // works | ||
case class A2[T](action: A2[?] ?=> String) // works | ||
case class A3[T](action: A3[T] => String) // works as well |