ignore error types in resolving constraints for generic functions 'if' is resolved as special function