You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
today I stumbled upon some magic breaking down. Core.Compiler.return_type should be taken cautiously, I know, however it worked super well in many many cases for me. But this one.
Union{One{String}, Array{T,N} where T where N, Two{_A} where _A}
as you see, somehow an Array UnionAll got inserted.
For sure, this has something todo with the quite special UnionAll construction Union{One{Int}, Two{T}} where T} where the UnionAll variable is only used for part of the inner Union.
EDIT
julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
The text was updated successfully, but these errors were encountered:
Hi Julia core team,
today I stumbled upon some magic breaking down.
Core.Compiler.return_type
should be taken cautiously, I know, however it worked super well in many many cases for me. But this one.the expected outcome is
however it returns
as you see, somehow an
Array
UnionAll got inserted.For sure, this has something todo with the quite special UnionAll construction
Union{One{Int}, Two{T}} where T}
where the UnionAll variable is only used for part of the inner Union.EDIT
The text was updated successfully, but these errors were encountered: