Re: Why this template code does not compile?

2019-03-13 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 13 March 2019 at 17:38:02 UTC, Victor Porton wrote: Why this template code does not compile? /// module runnable; import std.meta; import std.typecons; template FieldInfo(argT, string argName) { template FieldInfo(Nullable!argT argDefault = Nullable!argT

Why this template code does not compile?

2019-03-13 Thread Victor Porton via Digitalmars-d-learn
Why this template code does not compile? /// module runnable; import std.meta; import std.typecons; template FieldInfo(argT, string argName) { template FieldInfo(Nullable!argT argDefault = Nullable!argT()) { } } alias processFields(T, string name) = AliasSeq!(FieldInfo!(T, name