I don't know how I ended up in D.ide... I did not copy all the code, because it didn't matter in this case. The path that returns nothing is actually a: static if(op == "-") { ... } else { static assert(...) } Which hopefully won't compile if the operation is not supported.