Skip to content

Allow constant expressions to refer to other constants #1272

Closed
@marijnh

Description

@marijnh
const tag_a: uint = 12u;
const first_free_tag: uint = tag_a + 1u;

This'll require some resolution pass that complains about dependencies. It'll make implementing #1193 viable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions