Bug 19787 – Storage class type information is lost when used as template parameter

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2019-04-04T09:25:51Z
Last change time
2024-12-13T19:02:50Z
Assigned to
No Owner
Creator
Simen Kjaeraas
Moved to GitHub: dmd#17901 →

Comments

Comment #0 by simen.kjaras — 2019-04-04T09:25:51Z
void fun(ref int n) {} unittest { import std.traits, std.meta; alias a = Parameters!fun; alias b = AliasSeq!(Parameters!fun); pragma(msg, a); // (ref int) pragma(msg, b); // (int) } As indicated, the two pragmas give different output. This seems kinda related to issue 1818.
Comment #1 by simen.kjaras — 2020-08-10T07:34:18Z
*** Issue 21138 has been marked as a duplicate of this issue. ***
Comment #2 by robert.schadek — 2024-12-13T19:02:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17901 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB