Skip to content

tests/analyze: 4 stale expected outputs fail on main #508

Closed

Description

@blacktrs

bash tests/analyze/run.sh fails on main (56cd802a) for four cases. The expected files look stale after Ty::coercedScalars (weak-mode scalar coercion no longer reports string/float to int argument and return mismatches). Output is identical with main's built binary. Either the expectations should be regenerated or the dropped diagnostics are a regression: please decide.

Failing cases (bash tests/analyze/run.sh -v <name>):

  • flow_depth: 4 argument N of ...: string given, int expected errors (lines 12, 13, 19, 27) are gone; only the line-14 arithmetic warning remains (expected 4 errors + 1 warning, actual 0 + 1).
  • json_smoke: expected one arg.type error (needInt(): string given, int expected), actual is [].
  • type_mismatch: lost badReturn(): returns string, declared int (line 6) and the string/float takesInt() argument errors (lines 19, 20) and the new Point string argument (line 25); the null argument and badVoid() errors remain (expected 6, actual 2).
  • undefined_member: lost argument 1 of Box->width(): string given, int expected (line 6); 3 of 4 errors remain.

Side note: tests/analyze/.work/*.txt (flow_depth, json_smoke, type_mismatch, undefined_member) are tracked in git and show as modified after every run (string_bitwise.txt untracked). They are run artifacts and should be untracked and gitignored.

Activity

  1. added
    bug
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions