https://issues.dlang.org/show_bug.cgi?id=8161
bitwise <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m --- Comment #4 from bitwise <[email protected]> --- (In reply to Jonathan M Davis from comment #0) > struct S > { > @property void prop(int a, int b) > { > } > } > > It can't possibly be used as a property function either. I'd argue that any > such function should be considered an error as long as it's marked as > @property and the -property flag is used. This works: struct S { @property void prop(int a, int b){} } int main(string[] argv) { S s; s.prop = AliasSeq!(1, 2); return 0; } This behavior is not obvious though, and I agree that it should be disallowed. --
