/Users/timothee/git_clone/D/dcv/source/dcv/core/utils.d(65,13): Error: template instance `Slice!(cast(SliceKind)2, [1], IotaIterator)` does not match template declaration Slice(SliceKind kind, ulong[] packs, Iterator) if (packs.sum < 255 && !(kind == Canonical && (packs == [1]))) 2 annoyances: * `Slice!(cast(SliceKind)2, [1], IotaIterator)` is not syntax highlighted somehow (unlike `Slice(SliceKind kind, ulong[] packs, Iterator) if (packs.sum < 255 && !(kind == Canonical && (packs == [1])))` which gets highlighted) * cast(SliceKind)2 should be converted to its symbolic representation (as is case for Canonical in kind == Canonical)
NOTE: for context here's the enum: ``` enum SliceKind { /// A slice has strides for all dimensions. universal, /// A slice has >=2 dimensions and row dimension is contiguous. canonical, /// A slice is a flat contiguous data without strides. contiguous, } ``` I'd expect to see: s/cast(SliceKind)2/contiguous or even better, SliceKind.contiguous
The syntax highlight thing is fixed, and the enum thing is a duplicate of 8044 for which I just opened a PR. *** This issue has been marked as a duplicate of issue 8044 ***