github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/bool7.gno (about) 1 package main 2 3 // Ensure, when comparing evaluated boolean operand types, that the kinds produced 4 // are the same when one operand is typed and the other is untyped. 5 func main() { 6 println(boolAndTrue(true)) 7 println(boolAndTrue(false)) 8 } 9 10 func boolAndTrue(b bool) bool { 11 return b && true 12 } 13 14 // Output: 15 // true 16 // false