The answer to my question in another thread lead to the answer to this one. 
Replace the "compile error" line with:
    
    
    static:
      doAssert(false, "T is not a string")
    
    
    Run

The the doAssert will run at compile time.

Reply via email to