Type instability in nested quadgk calls

My hypothesis is that the inference failure ultimately traces back to problem with the unreliable approximation of `Core.Compiler.return_type` · Issue #35800 · JuliaLang/julia · GitHub. There are several other github issues that are ultimately examples of this, most of them encoutering the issue due to broadcasting. Examples:

2 Likes