[Issue 19845] New: Modifiers are not added to tuples
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 4 20:51:40 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19845
Issue ID: 19845
Summary: Modifiers are not added to tuples
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: porton at narod.ru
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.
--
More information about the Digitalmars-d-bugs
mailing list