Skip to content

Internal error 'conflicting contextual join decisions' after an array-length mismatch error #2313

Closed

Description

@ehartford

On main (58b1448 and later), with check test/compile_errors/err_1478_array_len_mismatch.w reports the real error and then:

error: internal error: conflicting contextual join decisions for one expression (sig 274: first expected i32 [3] final i32 [3], now expected <error> [0] final i32 [3])

An internal error must not follow a user error: the second join decision sees the <error> type the first diagnostic produced. The test passes because it only checks the first message; the cascade is a defect (the join should skip an <error>-typed expectation, or the length mismatch should stop the re-check).

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced; the internal error still follows the user error.

    $ with check test/compile_errors/err_1478_array_len_mismatch.w
    error: array literal has 2 elements, but `[i32; 4]` holds 4 (§4.3a)
    error: internal error: conflicting contextual join decisions for one expression (sig 355: first expected i32 [3] final i32 [3], now expected <error> [0] final isize [19])
    

    pre-release: an internal error shown to users after an ordinary mistake; skipping <error> in the join is small.

  2. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by 2396bc9 (PR #2656, stack #2658; battery green on the stack top 48c1c72). The commit message names the root-cause line and the regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions