Revision 6bcdd00b400bde8521119cede7e5f2dff3744adb authored by Fredrik Ekre on 05 May 2023, 16:22:03 UTC, committed by GitHub on 05 May 2023, 16:22:03 UTC
This patch removes the erroneous `{}` for types without parameters when
printing `MethodError`s from convert. Fixes e.g. the following (note
`Float64{}`):

```julia
julia> struct A{B, C} end

julia> convert(A{Float64,1}, A{Float64,2}())
ERROR: MethodError: Cannot `convert` an object of type
  A{Float64{},2} to an object of type
  A{Float64{},1}
```
1 parent 6adea08
Raw File
CITATION.bib
% This article is the definitive citation for Julia.
@article{Julia-2017,
    title={Julia: A fresh approach to numerical computing},
    author={Bezanson, Jeff and Edelman, Alan and Karpinski, Stefan and Shah, Viral B},
    journal={SIAM {R}eview},
    volume={59},
    number={1},
    pages={65--98},
    year={2017},
    publisher={SIAM},
    doi={10.1137/141000671},
    url={https://epubs.siam.org/doi/10.1137/141000671}
}

% For more details on research related to Julia, see https://julialang.org/research
back to top