Bug 23260 – If constructors have a function body, they should infer attributes

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-07-20T19:32:31Z
Last change time
2024-12-13T19:23:53Z
Keywords
pull
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#20131 →

Comments

Comment #0 by bugzilla — 2022-07-20T19:32:31Z
struct S { int a; this(int a) { } } @safe test() { S s = S(1); // ctor attribute inference will let this compile }
Comment #1 by dlang-bot — 2022-07-21T00:06:06Z
@WalterBright created dlang/dmd pull request #14319 "fix Issue 23260 - If constructors have a function body, they should i…" fixing this issue: - fix Issue 23260 - If constructors have a function body, they should infer attributes https://github.com/dlang/dmd/pull/14319
Comment #2 by robert.schadek — 2024-12-13T19:23:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20131 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB