Skip to content

Add conformance tests for deep let-chains with same-typed bindings #393

@aallan

Description

@aallan

The De Bruijn index system's hardest case is a function with many let @Int = ... bindings where indices shift with each binding. The current conformance suite (ch03_slot_indexing.vera) covers basic cases but not deep chains.

Write conformance tests with 5+ sequential Int let-bindings and verify the indices resolve correctly at each depth. This is the scenario most likely to confuse both LLMs generating code and the compiler when adding new let-binding logic.

Also test the interaction with match arm bindings, where indices are further shadowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions