Skip to content

Function with error return value bumps @Frame size. #9569

@SrMordred

Description

@SrMordred
const T1 = struct {
    frame: @Frame(T1.func),
    fn func(_: *T1) void {}
};

const T2 = struct {
    frame: @Frame(T2.func),
    fn func(_: *T2) !void {}
};
// @sizeOf(T1));  -> 24
// @sizeOf(T2));  -> 344

Its expected to have this huge bump in size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions