Bug 22684 – Templated constructor doesn't have class qualifier

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-01-17T10:56:33Z
Last change time
2024-12-13T19:20:25Z
Assigned to
No Owner
Creator
anonymous4
Moved to GitHub: dmd#20039 →

Comments

Comment #0 by dfj1esp02 — 2022-01-17T10:56:33Z
shared class A { this(T...)(T args){} } void f() { auto a=new A(0); //works auto b=new shared A(0); //doesn't work } The constructor should get shared qualifier, but doesn't.
Comment #1 by robert.schadek — 2024-12-13T19:20:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20039 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB