When a verbal noun is used like an English infinitive and it doesn’t have its own object, then it can just be put in there like that. However, verbal nouns of transit (e.g. coming, going, etc.) used this way often appear with the preposition a anyway, e.g. Nach dúirt mé leat a theacht anoir?