Open jebej opened 7 years ago
By the way, wouldn't it be possible to allow this syntax, for when the type parameter is not meant to be a type?
This appears to be very similar:
julia> function pp{::Float64}() end
ERROR: syntax: invalid variable expression in "where"
At least I find the error message as confusing.
Using '<' instead of '<:' in parameterized types yields the same error.
function f{T<Signed}(x::Array{T,1}) end
ERROR: syntax: invalid variable expression in "where"
Bump, this is still very confusing.
struct Wrapper{Vector{A}}
data::A
end
LoadError: syntax: invalid variable expression in "where" around...
Misusing type assertions in a type declaration results in a confusing error about the
where
syntax: