www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22746] New: Functions that throws marked as nothrow produces

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

          Issue ID: 22746
           Summary: Functions that throws marked as nothrow produces bad
                    error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: contact lsferreira.net

Currently:
```
Error: `nothrow` function `foo` may throw
```

But should produce the following:
```
Error: function `foo` may throw but is marked as `nothrow`
```

--
Feb 07 2022