blob: 8104d3ed473862adb6564a129b57801b3905d611 [file] [log] [blame]
package main
type T struct {
m map[int]int
}
func main() {
t := T{
m: make(map[int]int),
}
t.Inc(5)
t.Inc(7)
}
func (s *T) Inc(key int) {
v := s.m[key] // break, line 16
v++
s.m[key] = v // also here
}