presentations/highlight-js/test/markup/kotlin/function.expect.txt

14 lines
1.4 KiB
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
<span class="hljs-function"><span class="hljs-keyword">fun</span> <span class="hljs-title">a</span><span class="hljs-params">()</span></span> = <span class="hljs-number">1</span>
<span class="hljs-function"><span class="hljs-keyword">fun</span> <span class="hljs-comment">/* b1 */</span> <span class="hljs-title">b</span><span class="hljs-params">(<span class="hljs-comment">/*b2*/</span> a : <span class="hljs-type">Int</span> <span class="hljs-comment">/*b3*/</span>)</span></span> <span class="hljs-comment">/*b4*/</span> = a <span class="hljs-comment">// b5</span>
<span class="hljs-function"><span class="hljs-keyword">fun</span> <span class="hljs-type">&lt;T&gt;</span> <span class="hljs-title">c</span><span class="hljs-params">()</span></span> : String = <span class="hljs-string">"1"</span>
<span class="hljs-keyword">inline</span> <span class="hljs-function"><span class="hljs-keyword">fun</span> <span class="hljs-type">&lt;<span class="hljs-keyword">reified</span> T&gt;</span> <span class="hljs-title">d</span><span class="hljs-params">()</span></span> { <span class="hljs-keyword">return</span> }
<span class="hljs-function"><span class="hljs-keyword">fun</span> <span class="hljs-title">e</span><span class="hljs-params">(
a : <span class="hljs-type">Int</span>, <span class="hljs-comment">/*a*/</span>
b : <span class="hljs-type">String</span> <span class="hljs-comment">//b</span>
)</span></span>
{}