warn on non-ref init function in cover
Merge pull request #841 from zhaihj/init_final

Warn on non-ref init function in cover