You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InteractiveUtils: make default argtype of code_llvm etc. work with functions with single method (#42496)
`code_llvm` and `code_native` expects a single matching method, but the
default value of `types=Tuple` argument doesn't match with any function
signature and so we actually can't use that default value.
With this PR, the default argument type will be computed by `default_tt`,
which returns an appropriate signature if a function only has a single
method, otherwise returns `Tuple` (which is the same default value as before).
Now `code_llvm` and `code_native` by default work with functions that
have a single method, e.g.:
```julia
code_llvm() do # previously, we need to call `code_llvm(()) do ... end`
sin(42)
end
```
0 commit comments