Skip to content

Commit

Permalink
Test case for issue #58
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed May 9, 2022
1 parent e589c64 commit 2a1b480
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions checker/tests/regex_poly/StringBuilderToStringPolyRegex.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Test case for issue #58: https://tinyurl.com/cfissue/58

import org.checkerframework.checker.regex.qual.Regex;

class StringBuilderToStringPolyRegex {

void createPattern(final @Regex(1) StringBuilder regex) {
@Regex(1) String s = regex.toString();
}
}

0 comments on commit 2a1b480

Please sign in to comment.