www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22939] New: bad error message: Error: no property `msg` for

https://issues.dlang.org/show_bug.cgi?id=22939

          Issue ID: 22939
           Summary: bad error message: Error: no property `msg` for type
                    `string`
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kdevel vogtner.de

import std.stdio;

void main ()
{
   writefln!"%30.24f" (1., 1.);
}

$ dmd zzz1 (dmd 2.099)
.../linux/bin64/../../src/phobos/std/stdio.d(4432): Error: no property `msg`
for type `string`
.../linux/bin64/../../src/phobos/std/stdio.d(4432): Error: static assert: 
__error
zzz1.d(5):        instantiated from here: `writefln!("%30.24f", double,
double)`

expected: Report mismatch between expected and actual number of parameters.

--
Mar 26 2022