Skip to content

Commit

Permalink
Replaced usage of typeof in matchingvalue with Core.Typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Jul 1, 2024
1 parent 2ff254c commit 1473848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ For a `context` that is _not_ a `SamplingContext`, we fall back to
`matchingvalue(SampleFromPrior(), vi, value)`.
"""
function matchingvalue(sampler, vi, value)
T = typeof(value)
T = Core.Typeof(value)
if hasmissing(T)
_value = convert(get_matching_type(sampler, vi, T), value)
if _value === value
Expand Down

0 comments on commit 1473848

Please sign in to comment.