-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
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
promote rule fails in quaternion.jl #1079
Comments
Where is quaternion.jl? Doesn't look to be in the source tree. At any rate, Real is not a parameterized type, it's an abstract type. Do you mean to instead define: promote_rule{T<:Real, S}(::Type{T}, ::Type{Quaternion{S}}) = Quaternion{promote_type(T, S)} |
./examples/quaternion.jl On Mon, Jul 23, 2012 at 3:17 AM, pao <
|
when I tried to load it, that line caused the error reported julia> load("./examples/quaternion.jl") On Mon, Jul 23, 2012 at 3:27 AM, Jeffrey Sarnoff
|
I think that code is pretty old and just needs to be updated. |
julia> promote_rule{T,S}(::Type{Real{T}}, ::Type{Quaternion{S}}) =
Quaternion{promote_type(T,S)}
too many parameters for type Real
in anonymous at no file
The text was updated successfully, but these errors were encountered: