Skip to content

Commit 909e785

Browse files
committed
Tweak the error message
1 parent b2addc6 commit 909e785

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
@@ -460,8 +460,8 @@ class SepCheck(checker: CheckCaptures.CheckerAPI) extends tpd.TreeTraverser:
460460
|and therefore is no longer available.""",
461461
useLoc.sourcePos
462462
):
463-
addSubdiag(em"$ref was consumed here.", consumedLoc.sourcePos)
464-
addPrimaryNote(em"... and it was used here")
463+
addSubdiag(em"The capability was consumed here.", consumedLoc.sourcePos)
464+
addPrimaryNote(em"Then, it was used here")
465465

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

0 commit comments

Comments
 (0)