https://issues.dlang.org/show_bug.cgi?id=18479
Issue ID: 18479 Summary: does not match template declaration: syntax highlight error and enum not symbolized Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: timothee.co...@gmail.com /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) --