Skip to content

@compileLog should resolve lazy values #3193

Closed
@daurnimator

Description

@daurnimator
    const S = packed struct {_1: u1, x: u7, _: u24};
    @compileLog(@sizeOf(S));

Gives me

| (lazy value)

I can't see any reason for that value to be lazy: is there a way to force evaluation?

(Found while investigating #2627 (comment) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.stage1The process of building from source via WebAssembly and the C backend.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions