That gives the following error on 0.3 and 0.4:

julia> type Cubes<:AbstractArray;data;end

julia> c=Cubes([1,2,3])
Error showing value of type Cubes:
ERROR: MethodError: `size` has no method matching size(::Cubes)
Closest candidates are:
  size(::Any, ::Integer, ::Integer, ::Integer...)
 in showarray at show.jl:1162
 in anonymous at replutil.jl:27
 in with_output_limit at ./show.jl:1202
 in writemime at replutil.jl:26
 in display at REPL.jl:111
 in display at REPL.jl:114
 in display at multimedia.jl:149
 in print_response at REPL.jl:133
 in print_response at REPL.jl:118
 in anonymous at REPL.jl:595
 in run_interface at ./LineEdit.jl:1552
 in run_frontend at ./REPL.jl:835
 in run_repl at ./REPL.jl:164
 in _start at ./client.jl:430

0.3: 
julia> type Cubes{T,N} <: AbstractArray{T,N}
           data::Array{T,N}
       end

julia> Cubes([1,2,3])
Error showing value of type Cubes{Int64,1}:
ERROR: `size` has no method matching size(::Cubes{Int64,1})
 in writemime at replutil.jl:18
 in display at REPL.jl:117
 in display at REPL.jl:120
 in display at multimedia.jl:149
 in print_response at REPL.jl:139
 in print_response at REPL.jl:124
 in anonymous at REPL.jl:586
 in run_interface at ./LineEdit.jl:1379
 in run_frontend at ./REPL.jl:818
 in run_repl at ./REPL.jl:169
 in _start at ./client.jl:400

Reply via email to