Skip to content
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

Spurious error message in parametric type definition #6620

Closed
andreasnoack opened this issue Apr 24, 2014 · 1 comment
Closed

Spurious error message in parametric type definition #6620

andreasnoack opened this issue Apr 24, 2014 · 1 comment

Comments

@andreasnoack
Copy link
Member

I get an error when writing the following definition

julia> immutable MyMatrix{T,S<:AbstractMatrix{T}} <: AbstractMatrix{T}
       A::S
       B::Vector{T}
       end
ERROR: T not defined

but the type seems well defined because

A=MyMatrix{Float64,Matrix{Float64}}(randn(2,2),randn(2));

works just fine.

@JeffBezanson
Copy link
Member

This is actually a missing feature. Dup of #3766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants