Fixes #810 Inline comments break with class declarations

Fixes #810