Skip to content

error: interp: branch on a non-const-propagated constant expression #437

@diamondburned

Description

@diamondburned

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions