KT
Size: a a a
KT
АО
KT
АО
АО
АО
KT
АО
АО
АО
АО
АО
function f()
for t in [(1, 2), (1, 2, 3)]
reverse(t)
end
end
@code_warntype f()
Variables
#self#::Core.Compiler.Const(f, false)
@_2::Union{Nothing, Tuple{Tuple{Int64,Int64,Vararg{Int64,N} where N},Int64}}
t::Tuple{Int64,Int64,Vararg{Int64,N} where N}
Body::Nothing
1 ─ %1 = Core.tuple(1, 2)::Core.Compiler.Const((1, 2), false)
│ %2 = Core.tuple(1, 2, 3)::Core.Compiler.Const((1, 2, 3), false)
│ %3 = Base.vect(%1, %2)::Array{Tuple{Int64,Int64,Vararg{Int64,N} where N},1}
│ (@_2 = Base.iterate(%3))
│ %5 = (@_2 === nothing)::Bool
│ %6 = Base.not_int(%5)::Bool
└── goto #4 if not %6
2 ┄ %8 = @_2::Tuple{Tuple{Int64,Int64,Vararg{Int64,N} where N},Int64}::Tuple{Tuple{Int64,Int64,Vararg{Int64,N} where N},Int64}
│ (t = Core.getfield(%8, 1))
│ %10 = Core.getfield(%8, 2)::Int64
│ Main.reverse(t)
│ (@_2 = Base.iterate(%3, %10))
│ %13 = (@_2 === nothing)::Bool
│ %14 = Base.not_int(%13)::Bool
└── goto #4 if not %14
3 ─ goto #2
4 ┄ return
АО
[(1, 2), (1, 2, 3)] имеет странный тип Tuple{Int, Int, Vararg{Int64, N}) where N и такой же будет переменная tАО
KT
АО
АО
АО
KT