Fixed output of generics for @extends annotations.
Removed unused branch. Interfaces are not emitted.