[Issue 18757] static invariant{} should either work or not be valid syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 16 14:31:57 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18757
uplink.coder at googlemail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |uplink.coder at googlemail.com
--- Comment #3 from uplink.coder at googlemail.com ---
Well invariants cannot apply to static methods since they are only concerned
about the object's state.
which by definition cannot be directly touched in static functions.
that's why it's not called.
I don't see that there is a basis to issue a warning.
--
More information about the Digitalmars-d-bugs
mailing list