Comment #0 by thomas.bockman — 2016-05-20T21:48:24Z
"vit" on the D.lang forum found this bug:
http://forum.dlang.org/post/[email protected]
Starting with the following declarations:
---
class Type { }
class Foo(T : const T) {
alias X = T;
}
alias Bar(T : Foo!Ts, Ts...) = Ts[0];
---
This will print "immutable(Type):
---
alias F1 = Foo!(immutable(Type));
alias F2 = Foo!Type;
pragma(msg, "Bar: ", Bar!(Foo!Type)); // Bar: immutable(Type)
---
But this will print just "Type":
---
alias F1 = Foo!Type;
alias F2 = Foo!(immutable(Type));
pragma(msg, "Bar: ", Bar!(Foo!Type)); // Bar: Type
---
The type of Bar!(Foo!Type) should not be effected by the existence or order of F1 and F2 above.
Comment #1 by robert.schadek — 2024-12-13T18:47:52Z