-
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.
add a test for the new error message
- Loading branch information
Showing
3 changed files
with
5 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- Error: tests/neg/i15987.scala:26:40 --------------------------------------------------------------------------------- | ||
26 |case class Person(name: String) derives ShowWithExplicit, // error | ||
| ^ | ||
| derived instance ShowWithExplicit[Person] failed to generate: | ||
| method `derived` from object ShowWithExplicit takes explicit term parameters |
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,5 +1,3 @@ | ||
import scala.language.experimental.clauseInterleaving | ||
|
||
trait ShowWithExplicit[A] | ||
|
||
object ShowWithExplicit: | ||
|
This file was deleted.
Oops, something went wrong.