functions.expect.txt 764 B

12345678910
  1. <span class="hljs-class"><span class="hljs-keyword">protocol</span> <span class="hljs-title">Protocol</span> </span>{
  2. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f1</span><span class="hljs-params">()</span></span>
  3. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f2</span><span class="hljs-params">()</span></span>
  4. }
  5. <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyClass</span> </span>{
  6. <span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f</span><span class="hljs-params">()</span></span> {
  7. <span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>
  8. }
  9. }