Files
codeql/go/ql/test/query-tests/InconsistentCode/WhitespaceContradictsPrecedence/WhitespaceContradictsPrecedence.go
2026-06-11 07:15:54 +02:00

8 lines
175 B
Go

package main
// autoformat-ignore (otherwise gofmt will fix the spacing to reflect precedence)
func isBitSetBad(x int, pos uint) bool {
return x & 1<<pos != 0 // $ Alert
}