It should do it for ?: too. Spelunking the code, 'constraint' is the field of interest: https://github.com/dlang/dmd/blob/master/src/ddmd/dtemplate.d#L497 and it gets semantically analyzed here: https://github.com/dlang/dmd/blob/master/src/ddmd/dtemplate.d#L892 But before that it sets SCOPEcondition here: https://github.com/dlang/dmd/blob/master/src/ddmd/dtemplate.d#L887 and looking in expression.d for SCOPEcondition: https://github.com/dlang/dmd/blob/master/src/ddmd/expression.d#L15212 https://github.com/dlang/dmd/blob/master/src/ddmd/expression.d#L15212 and there's the short circuit conditional semantic analysis of constraints. But it's not there for ?:
Related: https://issues.dlang.org/show_bug.cgi?id=17335
https://github.com/dlang/dmd/pull/6713