Skip to content

Commit ffac87d

Browse files
committed
add a test for the new error message
1 parent f43fe1f commit ffac87d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

tests/neg/i15987.check

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Error: tests/neg/i15987.scala:26:40 ---------------------------------------------------------------------------------
2+
26 |case class Person(name: String) derives ShowWithExplicit, // error
3+
| ^
4+
| derived instance ShowWithExplicit[Person] failed to generate:
5+
| method `derived` from object ShowWithExplicit takes explicit term parameters

tests/neg/i15987/DerivedIssue.scala tests/neg/i15987.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import scala.language.experimental.clauseInterleaving
2-
31
trait ShowWithExplicit[A]
42

53
object ShowWithExplicit:

tests/neg/i15987/DerivedIssue.check

-4
This file was deleted.

0 commit comments

Comments
 (0)