[Issue 18479] New: does not match template declaration: syntax highlight error and enum not symbolized

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 20 21:55:37 UTC 2018


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: nobody at puremagic.com
          Reporter: timothee.cour2 at 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)

--


More information about the Digitalmars-d-bugs mailing list