~mna/snow

snow/pkg/codegen/testdata/fn_nested_generic_fn.snow.want -rw-r--r-- 634 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package main

import "fmt"

func _اcall(
	f func(
		bool,
	) bool,

) bool {
	return f(true)
}

func _اouter() {
	var innerا0 func(
		w int,
	) int
	innerا0 = func(
		w int,
	) int {
		return w
	}
	var innerا1 func(
		w string,
	) string
	innerا1 = func(
		w string,
	) string {
		return w
	}
	var innerا2 func(
		w bool,
	) bool
	innerا2 = func(
		w bool,
	) bool {
		return w
	}
	var _ int = innerا0(1)
	var fstring func(
		string,
	) string = innerا1
	var _ func(
		string,
	) string = fstring
	var d bool = _اcall(innerا2)
	_اprintln(d)
}

func main() {
	_اouter()
}

func _اprintln(
	b bool,
) {
	fmt.Println(b)
}