On Tuesday, 6 October 2015 at 20:35:28 UTC, NiRu wrote:
        if(is(typeof(value) == User)){

Use `static if` instead of plain `if` here.

Regular if does a runtime branch, so both true and else branches must compile with the same types.

Static if does a compile time branch, allowing different code to be compiled based on the condition - meaning types can change too.

Reply via email to