julia
386cdfa5 - Compiler: Fix `return_type` of `Core.current_scope` queried at runtime

Commit
1 day ago
Compiler: Fix `return_type` of `Core.current_scope` queried at runtime `return_type` called at runtime infers a builtin with `builtin_tfunction` without an inference state, but since #59202 the fallback of `current_scope_tfunc` only accepts an `IRInterpretationState`, so `Core.Compiler.return_type(Core.current_scope, Tuple{})` threw a `MethodError`. Accept `nothing` there again. This was found with JETLS, which reported the `current_scope_tfunc` call as a `MethodError`. Assisted-by: Claude Code (Opus 5.5)
Author
Committer
Parents
Loading