Skip to content

Commit 76f030c

Browse files
committed
Merge branch 'ct/functor-reflection' of github.com:topolarity/julia into interactive-utils-functors
2 parents 394f15d + ec2f4c8 commit 76f030c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

base/reflection.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,12 @@ julia> code_typed((Type{Int}, UInt8))
242242
└── return %1
243243
) => Int64
244244
245-
julia> code_typed((Base.Broadcast.Pick{2}, Tuple{Bool,Float64,Int64}))
245+
julia> code_typed((Returns{Int64},))
246246
1-element Vector{Any}:
247247
CodeInfo(
248-
1 ─ %1 = \$(Expr(:boundscheck, true))::Bool
249-
│ %2 = Base.getfield(args, 2, %1)::Float64
250-
└── return %2
251-
) => Float64
248+
1 ─ %1 = builtin Base.getfield(obj, :value)::Int64
249+
└── return %1
250+
) => Int64
252251
```
253252
"""
254253
function code_typed end

0 commit comments

Comments
 (0)