Skip to content

Commit 609bfdf

Browse files
committed
Tweak the error message
1 parent 05e04f0 commit 609bfdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/cc/SepCheck.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ class SepCheck(checker: CheckCaptures.CheckerAPI) extends tpd.TreeTraverser:
449449
|and therefore is no longer available.""",
450450
useLoc.sourcePos
451451
):
452-
addSubdiag(em"$ref was consumed here.", consumedLoc.sourcePos)
453-
addPrimaryNote(em"... and it was used here")
452+
addSubdiag(em"The capability was consumed here.", consumedLoc.sourcePos)
453+
addPrimaryNote(em"Then, it was used here")
454454

455455
/** Report a failure where a previously consumed capability is used again,
456456
* @param ref the capability that is used after being consumed

0 commit comments

Comments
 (0)