[Issue 18487] New: wrong warning: `A unittest should be annotated with at least @safe or @system`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 22 06:07:50 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18487
Issue ID: 18487
Summary: wrong warning: `A unittest should be annotated with at
least @safe or @system`
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
```
nothrow @safe pure:
// ...
unittest
{
// ...
}
```
std/array/static_array.d(43:1)[warn]: A unittest should be annotated with at
least @safe or @system
this is wrong since header has `nothrow @safe pure:`
(likewise if i use `nothrow: @safe: pure:)
(appeared in https://github.com/dlang/phobos/pull/6178
https://circleci.com/gh/dlang/phobos/6198?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
)
--
More information about the Digitalmars-d-bugs
mailing list