Open mofeing opened 7 hours ago
julia> T = (Vector{Tuple{Code}} where {Code<:Integer})
Array{Tuple{Code}, 1} where Code<:Integer
julia> eltype(T)
Any
julia> @inline ptreltype(::Type{Array{T,N}}) where {T,N} = T
ptreltype (generic function with 1 method)
julia> ptreltype(T)
ERROR: UndefVarError: `T` not defined
Stacktrace:
[1] ptreltype(::Type{Array{Tuple{Code}, 1} where Code<:Integer})
@ Main ./REPL[6]:1
[2] top-level scope
@ REPL[7]:1
seems like a julia issue: https://github.com/JuliaLang/julia/issues/55933
If you run this code:
it fails like this: