Skip to content

capnpc-go: panic if accessing a field that does not match discriminant #56

@zombiezen

Description

@zombiezen

Currently, the generated code will blindly return a field that does not match the set discriminant, which is undefined behavior (bad). Panicing is a much saner behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions