06.01.2020 20:08, Per Nordlöw пишет: > alias A = Algebraic!(long, string); > A x; > x = 42; That's because you try to assign int, not long. This works: alias A = Algebraic!(long, string); A x; x = 42L;