Repository navigation
Conversation
A second let of the same name in one block counted a type error and printed nothing, so --strict failed with only tc_errs=1. The Stage-A checker now prints FILE:LINE:COL: error: variable 'a' is already declared in this scope, the wording the playground compiler uses. typecheck_rules/duplicate_let fails with main's flowc and passes here.
Fixed point at gen2; bootstrap_from_c.sh --verify passes.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1434.
Reproduction (main 81ecf1e)
flowc_tc_bind_valuein compiler/src/typecheck.flow counted the error withflowc_tc_errand printed nothing.Change
It now reports through the same diagnostic path as the effect checks (
FILE:LINE:COL: error: ...), with the wording the playground compiler already uses:The bundle path with an import prints the same line before
flowc bundle tc: module check failed.Bootstrap C regenerated in its own commit.
Proof
compiler/fixtures/typecheck_rules/duplicate_let.flow: fails with main's flowc (FAIL duplicate_let, 138/1), passes with this one (139/0).Gates
flowc selftest PASS;
--regenfixed point gen2;--verifyPASS; typecheck_rules 139/0; parity_typecheck clean; test-lang 274/0; self_host_full ALL PASS; roundtrip ALL PASS; tests/cli 152/2 (jit_hello,test_mlir: golden drift on main).corpus_parity --checkon Darwin: 1016 < floor 1033, the same pre-existing gap as on main (effects fixtures exit 134 under strict effects); no corpus file changes status because of this diff.