This error happened when compiling https://github.com/diamondburned/smart-contract-go/blob/master/examples/transfer-back/main.go with /tinygo build -o ./main.wasm.
With -printir: http://0x0.st/zLo5.txt
error: interp: branch on a non-constant is returned with -gc none.
Since Google suggests something about consts not being supported, I wrote some smaller code to confirm that, but couldn't.