Adds async type inference of void return type. Fixes #15238