Open panacekcz opened 7 years ago
The indices returned from start and end should be IndexOrHigh for the input sequence. Could be solved by creating an annotation @MatcherFor("s") for the matcher variable. However the input sequence can be changed by reset, making this non-trivial.
start
end
IndexOrHigh
@MatcherFor("s")
reset
To be sound @MatcherFor would have to prohibit changing the input for the matcher. Also it should not be convertible to an unannotated Matcher.
@MatcherFor
Matcher
The indices returned from
start
andend
should beIndexOrHigh
for the input sequence. Could be solved by creating an annotation@MatcherFor("s")
for the matcher variable. However the input sequence can be changed byreset
, making this non-trivial.