Fixed #4381 (Inline type declaration on statics causes warning)