Thread overview
[Issue 21896] static if test fails after alias assignment
May 06, 2021
Adam D. Ruppe
Dec 17, 2022
Iain Buclaw
May 06, 2021
https://issues.dlang.org/show_bug.cgi?id=21896

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> ---
I think this is undefined in the language.... at declaration level, there is no real order of operations. So the static if and assign conceptually happen simultaneously (this is why D doesn't need forward declarations).

Obviously the alias assign thing does not follow this rule. But then we need to decide: does the rule change or does alias assign change? And i don't know yet.

--
May 06, 2021
https://issues.dlang.org/show_bug.cgi?id=21896

--- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> ---
@Walter if that's the case, is there a possibility for the compiler to always mark invalid uses as errors?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21896

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--