~mna/snow

snow/pkg/codegen/testdata/fn_tuple_reconcile_simple.snow.want -rw-r--r-- 467 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
package main

func _ااconvert_0(
	from struct {
		_ا0 uint32
		_ا1 uint16
		_ا2 string
	},
) struct {
	_ا0 uint64
	_ا1 int32
	_ا2 string
} {
	return struct {
		_ا0 uint64
		_ا1 int32
		_ا2 string
	}{uint64(from._ا0), int32(from._ا1), from._ا2}
}

func main() {
	var from struct {
		_ا0 uint32
		_ا1 uint16
		_ا2 string
	}
	var to struct {
		_ا0 uint64
		_ا1 int32
		_ا2 string
	}
	to = _ااconvert_0(from)
	if to._ا0 == uint64(from._ا0) {
	}
}