disallow yield in top-level module function