Desugared generator constructor