Adding constraint to generic interface.