https://github.com/JuliaLang/julia
Raw File
Tip revision: 804f22ddf1662721f01461f1119594e2647d9b43 authored by Stefan Karpinski on 17 March 2016, 21:48:30 UTC
wip
Tip revision: 804f22d
inference.jl
# This file is a part of Julia. License is MIT: http://julialang.org/license

# test for Core.Inference correctness and precision

const Bottom = Union{}

# issue 9770
@noinline x9770() = false
function f9770(x)
    if x9770()
        g9770(:a, :foo)
    else
        x
    end
end
function g9770(x,y)
   if isa(y, Symbol)
       f9770(x)
   else
       g9770(:a, :foo)
   end
end
@test g9770(:a, "c") === :a
@test g9770(:b, :c) === :b
back to top