tree-sitter-tiger/test/tags/functions.tig

13 lines
263 B
Plaintext
Raw Normal View History

2022-06-03 22:09:53 +02:00
let
primitive print(s: string)
/* ^ definition.function */
function func(a: int) : int = (print("Hello World!"); a)
/* ^ definition.function */
in
print("Hello World!\n");
/* <- reference.call */
func(42)
/* <- reference.call */
end