fix #3091
due to an obscure failure of type intersection to match a method