# Where does \`reinterpret(::Core.TypeEgal{Int32}, ::Function)\` come from?

**URL:** <https://discourse.julialang.org/t/where-does-reinterpret-core-typeegal-int32-function-come-from/143143>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [November 24, 2026, 4:00am UTC](https://discourse.julialang.org/t/where-does-reinterpret-core-typeegal-int32-function-come-from/143143 "2026-11-24T04:00:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimikage](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kimikage/32/14534_2.png) [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Post date:** [November 24, 2026, 4:00am UTC](https://discourse.julialang.org/t/where-does-reinterpret-core-typeegal-int32-function-come-from/143143/1 "2026-11-24T04:00:11Z")

</div>

This is less a question about a specific issue and more a question about how to investigate such issues. It’s also an experiment with the auto-translation feature.

While investigating an issue related to invalidation, I noticed the existence of a strange method instance: `MethodInstance for reinterpret(::Core.TypeEgal{Int32}, ::Function)`.

```julia
julia> VERSION
v"1.15.0-DEV.956"

julia> using MethodAnalysis

julia> mis = collect(methodinstances(reinterpret));

julia> foreach(println, mis)
MethodInstance for reinterpret(::Core.TypeEgal{Signed}, ::Float64)
MethodInstance for reinterpret(::Core.TypeEgal{Signed}, ::Float32)
MethodInstance for reinterpret(::Core.TypeEgal{Signed}, ::Float16)
MethodInstance for reinterpret(::Core.TypeEgal{Unsigned}, ::Float64)
MethodInstance for reinterpret(::Core.TypeEgal{Unsigned}, ::Float32)
MethodInstance for reinterpret(::Core.TypeEgal{Unsigned}, ::Float16)
MethodInstance for reinterpret(::Core.TypeEgal{UInt32}, ::Vector{UInt32})
MethodInstance for reinterpret(::Core.TypeEgal{Int16}, ::Vector{UInt8})
MethodInstance for reinterpret(::Core.TypeEgal{Int32}, ::Vector{UInt8})
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::Vector{Int64})
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::Vector{Int32})
MethodInstance for reinterpret(::Core.TypeEgal{UInt8}, ::Vector{UInt64})
MethodInstance for reinterpret(::Core.TypeEgal{UInt8}, ::Vector{UInt32})
MethodInstance for reinterpret(::Core.TypeEgal{UInt32}, ::SubArray{UInt128, 1, Vector{UInt128}, Tuple{UnitRange{Int64}}, true})
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::Vector{Float64})
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::Int64)
MethodInstance for reinterpret(::Core.TypeEgal{Float32}, ::UInt32)
MethodInstance for reinterpret(::Core.TypeEgal{UInt128}, ::Int128)
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::Float64)
MethodInstance for reinterpret(::Core.TypeEgal{Float64}, ::UInt64)
MethodInstance for reinterpret(::Core.TypeEgal{Int32}, ::Core.IntrinsicFunction)
MethodInstance for reinterpret(::Core.TypeEgal{Int32}, ::Function)
MethodInstance for reinterpret(::Core.TypeEgal{Float16}, ::UInt16)
MethodInstance for reinterpret(::Core.TypeEgal{Int64}, ::UInt64)
MethodInstance for reinterpret(::Core.TypeEgal{Core.IntrinsicFunction}, ::Int32)
MethodInstance for reinterpret(::Core.TypeEgal{UInt32}, ::Float32)
MethodInstance for reinterpret(::Core.TypeEgal{UInt16}, ::Float16)
MethodInstance for reinterpret(::Core.TypeEgal{UInt8}, ::Int8)
MethodInstance for reinterpret(::Core.TypeEgal{UInt32}, ::Int32)
MethodInstance for reinterpret(::Core.TypeEgal{UInt16}, ::Int16)
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::Ptr{Nothing})
MethodInstance for reinterpret(::Core.TypeEgal{Int64}, ::Float64)
MethodInstance for reinterpret(::Core.TypeEgal{Int32}, ::Float32)
MethodInstance for reinterpret(::Core.TypeEgal{Int16}, ::Float16)
MethodInstance for reinterpret(::Core.TypeEgal{Int8}, ::UInt8)
MethodInstance for reinterpret(::Core.TypeEgal{Int32}, ::UInt32)
MethodInstance for reinterpret(::Core.TypeEgal{Int16}, ::UInt16)
MethodInstance for reinterpret(::Core.TypeEgal{Int128}, ::UInt128)
MethodInstance for reinterpret(::Core.TypeEgal{UInt32}, ::Char)
MethodInstance for reinterpret(::Core.TypeEgal{Char}, ::UInt32)
MethodInstance for reinterpret(::Core.TypeEgal{Ptr{UInt16}}, ::Ptr{UInt8})
MethodInstance for reinterpret(::Core.TypeEgal{Ptr{UInt32}}, ::Ptr{UInt8})
MethodInstance for reinterpret(::Core.TypeEgal{UInt16}, ::Base.JuliaSyntax.Kind)
MethodInstance for reinterpret(::Core.TypeEgal{Float64}, ::Int64)
MethodInstance for reinterpret(::Core.TypeEgal{Float32}, ::Int32)
MethodInstance for reinterpret(::Core.TypeEgal{NTuple{8, UInt8}}, ::Int64)
MethodInstance for reinterpret(::Core.TypeEgal{NTuple{8, UInt8}}, ::UInt64)
MethodInstance for reinterpret(::Core.TypeEgal{UInt64}, ::UInt64)
MethodInstance for reinterpret(::Core.TypeEgal{Ptr{Base.Filesystem.DiskStat}}, ::Ptr{Nothing})
MethodInstance for reinterpret(::Core.TypeEgal{Float16}, ::Int16)
MethodInstance for reinterpret(::Core.TypeEgal{NTuple{4, UInt8}}, ::UInt32)

```

There’s a difference between `TypeEgal` and `Type`, but this same instance also exists in Julia 1.13.4.

I suspect the following line is the origin:

> <https://github.com/JuliaLang/julia/blob/c478cbf27a5bb8698274f7bfddd74d5d5f74a138/Compiler/src/tfuncs.jl#L3358>

I forcibly removed that method instance by redefining `reinterpret`, then loaded the `Compiler` with a type assertion `::IntrinsicFunction` added to the relevant call site.  
However, the method instance was generated again.

I can’t tell whether this indicates that it originates from a different line, whether it’s due to swapping the `Compiler`, or whether it’s caused by something entirely unrelated.

Are there any good practices for tracking down issues like this without rebuilding Julia?
