<a name="example7.1"></a> Protocol with generic methods</h3>

<p>When working with generic methods, as in following protocol definition, there are some additional requirements and limitations.</p>

<p>Protocol definition:</p>
<pre class="highlight swift"><code><span class="c1">//sourcery: AutoMockable</span>
<span class="kd">protocol</span> <span class="kt">ProtocolWithGenericMethods</span> <span class="p">{</span>
    <span class="kd">func</span> <span class="n">methodWithGeneric</span><span class="o">&lt;