#cannot do aggregate destructoring

1 messages · Page 1 of 1 (latest)

jolly sphinx
#
const TextureHandle, const SpriteFrame = blk: {
    const handle = @import("texture_handle.zig");

    break :blk .{handle.TextureHandle, handle.SpriteFrame};
};
src\tile_map.zig:3:20: error: expected ';' after declaration
const TextureHandle, const SpriteFrame = blk: {
                   ^

why can i not do aggregate destructoring here?

fervent owl
#

Destructuring is only permitted at local scope

jolly sphinx
#

damn

#

thank you

nova silo
jolly sphinx