github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/shift0.gno (about) 1 package main 2 3 func main() { 4 var rounds uint64 5 var cost uint32 = 2 6 rounds = 1 << cost 7 println(rounds) 8 } 9 10 // Output: 11 // 4