[REG2.063] Issue 10537 - Forward reference error on 'yield' toy example.

http://d.puremagic.com/issues/show_bug.cgi?id=10537