added error on generator function not containing a yield statement

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>