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
This stems from compat_arith_type returning TInteger in the general case:
compat_arith_type
TInteger
compat_arith_type(Ty1, Ty2, Env) -> TInteger = type(integer) ...
even if one of Ty1 or Ty2 are more specific and the operator is +.
Ty1
Ty2
+
Test:
test() -> Indent = string:length("123"), lists:duplicate(Indent + 3, " ").
Found when typechecking OTP's argparse.erl.
argparse.erl
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This stems from
compat_arith_type
returningTInteger
in the general case:even if one of
Ty1
orTy2
are more specific and the operator is+
.Test:
Found when typechecking OTP's
argparse.erl
.The text was updated successfully, but these errors were encountered: