Summary: Result of concatenation of static arrays does not
                    implicitly cast to void[]
           Product: D
           Version: 1.045
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: minor
          Priority: P3
         Component: DMD

=== Testcase ===
void main()
    ubyte id;
    void[] v = [id] ~ [id];
=== Compiler output ===
test.d(4): Error: cannot implicitly convert expression ([id,id]) of type
ubyte[] to void[]
=== Testcase end ===
Adding [] after either [id] allows the code to compile.

This is probably related to #3068, if it isn't actually the same bug...

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to