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

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

--

Reply via email to