https://issues.dlang.org/show_bug.cgi?id=11211 --- Comment #4 from mhh <maxhaton at gmail.com> --- The invalid state thing was me misreading the test case, apologies. I have brought up some kind of substrctural types in a meting so who knows if this behaviour may one day be properly fixed. --