fix Issue 10212 - Segfault in mismatching delegate literal types