aboutsummaryrefslogtreecommitdiffstats
path: root/testdata/simple.go
blob: 694bd3306cf6192308d6be9ddca2d4697dfbfc2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main

import "strings"

func main() {
	capturedReference := 0
	capturedReference2 := 1

	go func() {
		capturedReference += 1
		capturedReference2 += 1

		if capturedReference == 1 {
			return
		}

		newVar := 0
		newVar += 1

		str := "a"
		strings.Repeat(str, 3)
	}()
}