diff --git a/test/core.jl b/test/core.jl index a8ae28af1fd93..0f172b2a4fc2d 100644 --- a/test/core.jl +++ b/test/core.jl @@ -618,8 +618,8 @@ let end # issue #2365 -type B{T} +type B2365{T} v::Union(T, Nothing) end -@test B{Int}(nothing).v === nothing -@test B{Int}(0).v === 0 +@test B2365{Int}(nothing).v === nothing +@test B2365{Int}(0).v === 0