titles.expect.txt 723 B

12345678910
  1. <span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Greet</span> </span>{
  2. <span class="hljs-function"><span class="hljs-keyword">public</span> Either&lt;Integer, String&gt; <span class="hljs-title">f</span><span class="hljs-params">(<span class="hljs-keyword">int</span> val)</span> </span>{
  3. <span class="hljs-keyword">new</span> Type();
  4. <span class="hljs-keyword">if</span> (val) {
  5. <span class="hljs-keyword">return</span> getType();
  6. } <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (!val) {
  7. <span class="hljs-keyword">throw</span> getError();
  8. }
  9. }
  10. }