Debian Codegraph @

quickfix/qf1001/testdata/go1.0/CheckDeMorgan/kvexpr.go

raw
1 package pkg
2
3 func do() bool {
4 type Info struct {
5 idx int
6 }
7
8 var state map[Info]int
9 // Don't crash on KeyValueExpr
10 return !(state[Info{idx: 6}] == 6 || false) //@ diag(`could apply De Morgan's law`)
11 }