Bug 19845 – Modifiers are not added to tuples

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-05-04T20:51:40Z
Last change time
2019-05-05T14:39:29Z
Assigned to
No Owner
Creator
Victor Porton

Comments

Comment #0 by porton — 2019-05-04T20:51:40Z
Modifiers (like "const") are not added to tuples by DMD64 D Compiler v2.085.1: ``` import std.meta : AliasSeq; alias t = AliasSeq!(int, float); // create tuple (int, float) alias tc = const(t); static assert(is(tc[1] == const float)); ``` a.d(5): Error: static assert: is(float == const(float)) is false Not quite sure if this is a compiler bug or intended behavior.
Comment #1 by simen.kjaras — 2019-05-05T14:39:29Z
*** This issue has been marked as a duplicate of issue 19794 ***