tests/dmd/fail_compilation/imports/i20057.d
raw| 1 | template generateEmptyFunction(C, func...) |
| 2 | { |
| 3 | } |
| 4 | |
| 5 | template isAbstractFunction(T...) |
| 6 | if (T.length == 1) |
| 7 | { |
| 8 | enum bool isAbstractFunction = __traits(isAbstractFunction, T[0]); |
| 9 | } |
| 10 | |
| 11 | alias BlackHole(Base) = AutoImplement!(Base, generateEmptyFunction, isAbstractFunction); |
| 12 | |
| 13 | class AutoImplement(Base, alias how, alias what = isAbstractFunction) : Base {} |