default.expect.txt 669 B

123456789101112131415
  1. <span class="hljs-keyword">module</span> hello
  2. <span class="hljs-keyword">function</span> dyno = -&gt; <span class="hljs-keyword">DynamicObject</span>()
  3. <span class="hljs-keyword">struct</span> human = { name }
  4. <span class="hljs-meta">@annotated</span>
  5. <span class="hljs-keyword">function</span> main = |args| {
  6. <span class="hljs-keyword">let</span> a = <span class="hljs-number">1</span>
  7. <span class="hljs-keyword">var</span> b = <span class="hljs-number">2</span>
  8. <span class="hljs-keyword">println</span>(<span class="hljs-string">"hello"</span>)
  9. <span class="hljs-keyword">let</span> john = human(<span class="hljs-string">"John Doe"</span>)
  10. }