Answered my own question: static if (is(typeof(func0) == function)) writefln("func0 is a function."); is() really wants a type, not an expression.