Bug 23016 – errors about attributes in debug scope with UFCS
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-04-14T16:24:57Z
Last change time
2023-06-27T13:48:39Z
Assigned to
No Owner
Creator
Dennis
Comments
Comment #0 by dkorpel — 2022-04-14T16:24:57Z
```
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.
Comment #1 by dkorpel — 2023-06-27T13:48:39Z
*** This issue has been marked as a duplicate of issue 24017 ***