[Issue 23016] New: errors about attributes in debug scope with UFCS
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 14 16:24:57 UTC 2022
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 at puremagic.com
Reporter: dkorpel at 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.
--
More information about the Digitalmars-d-bugs
mailing list