Skip to content

Reproduce and fix block-scope error rendering #185

Description

@timfennis

Problem

The functional program tests/functional/programs/004_basic/005_block_scope_destroys_local_variables.ndc correctly detects that x is out of scope. The historical TODO says its diagnostic was rendered incorrectly, but the current test only asserts a substring of the debug-formatted error.

Desired outcome

Reproduce the rendering issue through the relevant user-facing path (CLI and/or LSP), add a rendering regression test, and fix it if still present.

Location

tests/functional/programs/004_basic/005_block_scope_destroys_local_variables.ndc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions