https://issues.dlang.org/show_bug.cgi?id=15989
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Walter Bright <[email protected]> --- Simplified example: interface Kickstart{ bool foo( int ); } class ShiftOr : Kickstart { bool foo( int ) { return false; } } struct Regex { Kickstart kickstart; } Regex regex() { return Regex(new ShiftOr()); } void main() { enum ctRegex = regex(); Regex r = ctRegex; r.kickstart.foo(7); } --
