Skip to content

Uninitialized fields cannot be Vector lengths #22

@shustinm

Description

@shustinm

Description
hydration doesn't fail immediately when using initialized fields as vector lengths, gives an unclear RuntimeError

To Reproduce
Define an invalid vector:

class TestStruct(Struct):
    a = UInt16
    v = Vector(a)

Expected behavior
A clear and concise error that the field must be initialized

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions