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
I believe the linter may not be interpreting parametric functions correctly:
julia> using Lint julia> lintstr("foo{S<:AbstractString}(args::Array{S}=ARGS) = typeof(args)") 1-element Array{Lint.LintMessage,1}: none:1 [foo ] ERROR args type assertion and default seem inconsistent
ARGS is of the type Array{UTF8String,1} which definitely matches the type assertion.
Array{UTF8String,1}
The text was updated successfully, but these errors were encountered:
Hm... but this returns false:
Array{UTF8String,1} <: Array{AbstractString}
Sorry, something went wrong.
@tonyhffong But this returns true:
julia> S = TypeVar(:S, AbstractString) S<:AbstractString julia> Array{UTF8String,1} <: Array{S} true
Successfully merging a pull request may close this issue.
I believe the linter may not be interpreting parametric functions correctly:
ARGS is of the type
Array{UTF8String,1}
which definitely matches the type assertion.The text was updated successfully, but these errors were encountered: