We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow-up on #3267 (comment)
I can reproduce your comment about your new typestate checker using the Regex Checker:
void bar(String s) { RegexUtil.isRegex(s); if (true) { // :: error: (argument.type.incompatible) Pattern.compile(s); // Error missing } }
I'll look into wrapping all ExpressionStatements into an assignment to a temporary variable, turning the above code into:
void bar(String s) { boolean res = RegexUtil.isRegex(s); if (true) { // :: error: (argument.type.incompatible) Pattern.compile(s); } }
which correctly gives an error.
The text was updated successfully, but these errors were encountered:
Test case for issue typetools#3281
ffed774
Test case for issue #3281
b6b12df
ExpressionStatementNode
d367wang
Successfully merging a pull request may close this issue.
Follow-up on #3267 (comment)
I can reproduce your comment about your new typestate checker using the Regex Checker:
I'll look into wrapping all ExpressionStatements into an assignment to a temporary variable, turning the above code into:
which correctly gives an error.
The text was updated successfully, but these errors were encountered: