Skip to content

Eliminate CompileError::ContractIdConstantNotAConstDecl #6841

@jjcnn

Description

@jjcnn

The error CompileError::ContractIdConstantNotAConstDecl is only used in contract_helpers.rs, and is only thrown if the typecheck of the CONTRACT_ID declaration fails. Since this declaration is generated by the compiler, this typecheck should never fail, and if it does it should be an internal compiler error instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler: frontendEverything to do with type checking, control flow analysis, and everything between parsing and IRgengood first issueGood for newcomersteam:compilerCompiler Team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions