https://issues.dlang.org/show_bug.cgi?id=6777
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #12 from Walter Bright <[email protected]> --- The problem comes from the idea that having an alias this means that operations not supported by the class get forwarded to the alias this. Since opCast() can override what explicit casts do for a class reference, the alias this needs to be respected (even if it doesn't provide an opCast(), it still can be cast). The current behavior seems an inevitable consequence of that. Using alias this in a class may not be a good practice. --
