handle @:generic inline methods (closes #2158)