https://issues.dlang.org/show_bug.cgi?id=21288
Mathias LANG <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Mathias LANG <[email protected]> --- Wait, is this code even valid ? Here in `C.foo` & `foo` you are calling `B.p`, as a shortcut for `B.a.p`, but `a()` is not static, hence you should not be able to do that. Indeed if you change the expression to `B.a.p` it gives you a proper error message. So the second case is an accept-invalid, and the first case could use with a better error message. --
