www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23016] New: errors about attributes in debug scope with UFCS

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

          Issue ID: 23016
           Summary: errors about attributes in debug scope with UFCS
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

```
void throwFunc(string s) {}

void main() nothrow
{
    debug throwFunc("normal"); // Rightly permitted
    debug "ufcs".throwFunc; // Error: function `throwFunc` is not `nothrow`
}
```
The second statement should pass just like the first one.

--
Apr 14 2022