Re: is expression with template parameter list

2016-01-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/12/16 8:03 AM, Jacob Carlborg wrote: The following example compiles work as expected: import std.stdio; import std.typecons; void main() { Nullable!(int) a; static if(is(typeof(a) == Nullable!(U), U)) writeln("true"); else writeln("false"); } But if I use

is expression with template parameter list

2016-01-12 Thread Jacob Carlborg via Digitalmars-d-learn
The following example compiles work as expected: import std.stdio; import std.typecons; void main() { Nullable!(int) a; static if(is(typeof(a) == Nullable!(U), U)) writeln("true"); else writeln("false"); } But if I use the fully qualified name in the condition, i.e.