https://issues.dlang.org/show_bug.cgi?id=7597
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from [email protected] --- We either should forbid a method named init (or any other valid type properties) or require and explizit "override". This isn't related to only structs, e.g.: class A { void init() {} } void t(T)() { auto x = T.init; } int main(string[] args) { t!A(); } -> test.d(10): Error: need 'this' for 'init' of type 'void()'. The bug is more: "Don't allow shadowing of type properties". --
