~mna/snow

snow/pkg/codegen/testdata/struct_unused_generic.snow.want -rw-r--r-- 372 bytes
424066c5Martin Angers doc: v0.0.5 1 year, 8 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
package main

import "fmt"

type _ا5اCا0 struct {
	_اz int
}

func _ا5اCا0اnew(
	s _ا5اCا0,
	m map[string]bool,
) _ا5اCا0 {
	var r _ا5اCا0
	if m["z"] {
		r._اz = s._اz
	}
	return r
}

func main() {
	var c _ا5اCا0 = _ا5اCا0اnew(_ا5اCا0{_اz: 1}, map[string]bool{"z": true})
	_اprintln(c._اz)
}

func _اprintln(
	i int,
) {
	fmt.Println(i)
}