Closed
Description
Ah, it's be noticed when @PallHaraldsson was testing Py2Jl.jl: JuliaCN/Py2Jl#5 (comment)
I positioned the unexpected behaviour and simplified it to code without package specific APIs:
let z = Dict{Symbol, Any}(:class=>"Module"), Main855_1218 = z
function Main858_1221(Main856_1219::Dict)
Main857_1220 = (get)(Main856_1219, :class) do
nothing
end
@info :bug Main857_1220 typeof(Main857_1220) Main857_1220 === "Module"
if Main857_1220 === "Module"
1
else
nothing
end
end
function Main858_1221(Main856_1219)
nothing
end
Main854_1217 = Main858_1221(Main855_1218)
if Main854_1217 === nothing
throw("failed")
else
Main854_1217
end
end
┌ Info: bug
│ Main857_1220 = "Module"
│ typeof(Main857_1220) = String
└ Main857_1220 === "Module" = false
ERROR: "failed"
Stacktrace:
[1] top-level scope at REPL[60]:19
Metadata
Metadata
Assignees
Labels
No labels