Skip to content

Commit

Permalink
add a test for the new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
arainko committed Aug 5, 2024
1 parent f43fe1f commit ffac87d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions tests/neg/i15987.check
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import scala.language.experimental.clauseInterleaving

trait ShowWithExplicit[A]

object ShowWithExplicit:
Expand Down
4 changes: 0 additions & 4 deletions tests/neg/i15987/DerivedIssue.check

This file was deleted.

0 comments on commit ffac87d

Please sign in to comment.