fix #3182, a subtle compile-time method matching bug