~mna/snow

snow/pkg/codegen/testdata/fn_generic_identity.snow.want -rw-r--r-- 393 bytes
424066c5Martin Angers doc: v0.0.5 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main

import "fmt"

func _اidا0(
	v string,
) string {
	return v
}

func _اidا1(
	v int64,
) int64 {
	return v
}

func main() {
	var s string = _اidا0("a")
	var i int64 = _اidا1(int64(1))
	var i2 int64 = _اidا1(int64(2))
	_اprintsln(s)
	_اprintiln(i)
	_اprintiln(i2)
}

func _اprintsln(
	s string,
) {
	fmt.Println(s)
}

func _اprintiln(
	i int64,
) {
	fmt.Println(i)
}