www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21444] New: bad string concat in static assert message

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

          Issue ID: 21444
           Summary: bad string concat in static assert message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: trivial
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

See
https://github.com/dlang/phobos/blob/2c0660141748a13637ff473cbb7b0d52eb1c44db/std/traits.d#L1416

```
static assert(0, func[0].stringof ~ "is not a function");
```

The should be a space as first char of the "is not a function" literal

--
Dec 02 2020