December 05 [Issue 24891] New: Two scope attributes emitted as part of .di generation | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24891 Issue ID: 24891 Summary: Two scope attributes emitted as part of .di generation Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: alphaglosined@gmail.com dmd -o- -Hd=imports str.d ```d module str; struct String { export: nothrow @nogc: @safe: this(return scope ref typeof(this) other) @trusted scope { } } ``` Results in: ```d // D import file generated from 'str.d' module str; struct String { export nothrow @nogc @safe scope scope @trusted this(ref return scope typeof(this) other); } ``` As of dmd 2.109.1 -- |
Copyright © 1999-2021 by the D Language Foundation