4 ms·
No, the return type can change as long as all return paths return the same value for the same function call. So you can't, in the same execution, return two dif
by ubercore 12y ago
No, the return type can change as long as all return paths return the same value for the same function call. So you can't, in the same execution, return two different types, but two different executions can vary their return type as long as its consistent.