Skip to content

Commit

Permalink
add test for #17003
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed May 26, 2017
1 parent 11724ff commit 49561c9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5485,3 +5485,22 @@ let fs = Any[typeinf_ext, typeinf_loop, typeinf_edge, occurs_outside_getfield, p
end
end
end


abstract type AArray_17003{T,N} end
AVector_17003{T} = AArray_17003{T,1}

struct Nable_17003{T}
end

struct NArray_17003{T,N} <: AArray_17003{Nable_17003{T},N}
end

(::Type{NArray_17003}){T,N}(::Array{T,N}) = NArray_17003{T,N}()

gl_17003 = [1, 2, 3]

f2_17003(item::AVector_17003) = nothing
f2_17003(::Any) = f2_17003(NArray_17003(gl_17003))

@test f2_17003(1) == nothing

0 comments on commit 49561c9

Please sign in to comment.