|author||Ori Bernstein <email@example.com>||2018-04-17 22:28:18 -0700|
|committer||Ori Bernstein <firstname.lastname@example.org>||2018-04-17 22:28:18 -0700|
Don't mutate the traits on builtin types.
mktylike() should return a generic type based on the builtin, and that means that if we mutate the builtin, we will be adding traits to our literals. This is wrong on multiple levels. First off, it means that '@t :: numeric,integral @t' will now require whatever other types are implemented over literals. And second, it means that if, for example, a trait is implemented for flt64, flt32 literals will also need it.
Diffstat (limited to '6')
0 files changed, 0 insertions, 0 deletions