Signal error if can't deduce array literal type in recursive method