def METHOD_NAME(snippetcompiler):
    """
    This test makes sure we detect name collisions during type inference by defining two non-local entities with the same
    name and an inheritance relation between them.
    """
    snippetcompiler.setup_for_error(
        """