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: [email protected]
          Reporter: [email protected]

```
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.

--

Reply via email to