-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type comparison printing in
MethodError
s from convert. (#49645)
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} ```
- Loading branch information
1 parent
6adea08
commit 6bcdd00
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters