binop: token.AND_NOT

This commit is contained in:
visualfc
2024-05-10 21:30:17 +08:00
parent aae663e5e5
commit 1fb37c37fe
3 changed files with 101 additions and 82 deletions

View File

@@ -193,6 +193,9 @@ func main() {
if b == true && b != false {
println("check bool", b)
}
n1 := 0b1001
n2 := 0b0011
println("check &^", n1&^n2 == 0b1000, n2&^n1 == 0b0010)
println(true, false, 'a', 'A', rune('中'),
int8(1), int16(2), int32(3), int64(4), 5,
uint8(1), uint16(2), uint32(3), uint64(4), uintptr(5),