File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/cc
tests/neg-custom-args/captures Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1306,7 +1306,7 @@ object CaptureSet:
13061306 |cannot be included in outer capture set $cs"""
13071307 else if ! elem.tryClassifyAs(cs.classifier) then
13081308 i """ capability ${elem} is not classified as ${cs.classifier}, therefore it
1309- |cannot be included in capture set $cs of ${cs.classifier} elements """
1309+ |cannot be included in capture set $cs of ${cs.classifier.name } elements """
13101310 else if cs.isBadRoot(elem) then
13111311 elem match
13121312 case elem : FreshCap =>
Original file line number Diff line number Diff line change 1919 | cap is a root capability associated with the result type of (_$1: File^?): Logger{val f: File^{_$1}}^{cap.rd, _$1}
2020 |
2121 |Note that capability C is not classified as trait SharedCapability, therefore it
22- |cannot be included in capture set ? of parameter _$1 of trait SharedCapability elements.
22+ |cannot be included in capture set ? of parameter _$1 of SharedCapability elements.
2323 |
2424 | longer explanation available when compiling with `-explain`
You can’t perform that action at this time.
0 commit comments