[Issue 24891] New: Two scope attributes emitted as part of .di generation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 5 11:21:59 UTC 2024
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 at puremagic.com
Reporter: alphaglosined at 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
--
More information about the Digitalmars-d-bugs
mailing list