Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type alias substitution #118

Merged
merged 5 commits into from
Jan 3, 2023
Merged

Fix type alias substitution #118

merged 5 commits into from
Jan 3, 2023

Conversation

jmackie
Copy link
Member

@jmackie jmackie commented Jan 3, 2023

This (I think) is the correct fix for the bug described in #115.

Note that I'm still swapping out HashSet for IndexSet because we need the determinism for tests.

@@ -121,6 +121,11 @@ impl Substitution {
for t in tail {
arguments.push(self.apply_rec(t.clone(), depth));
}
let alias_variables = alias_variables
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important bit 👀

@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Merging #118 (45b4c25) into main (e41bdbd) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
+ Coverage   84.40%   84.43%   +0.02%     
==========================================
  Files          83       83              
  Lines       15274    15296      +22     
==========================================
+ Hits        12892    12915      +23     
+ Misses       2382     2381       -1     
Impacted Files Coverage Δ
crates/ditto-checker/src/typechecker/scheme.rs 98.14% <ø> (ø)
...cker/src/bin/ditto-checker-testbin-check-module.rs 94.69% <100.00%> (+0.69%) ⬆️
crates/ditto-checker/src/kindchecker/mod.rs 80.47% <100.00%> (ø)
crates/ditto-checker/src/typechecker/common.rs 96.70% <100.00%> (-0.11%) ⬇️
crates/ditto-checker/src/typechecker/env.rs 100.00% <100.00%> (ø)
crates/ditto-checker/src/typechecker/mod.rs 97.15% <100.00%> (ø)
...ates/ditto-checker/src/typechecker/substitution.rs 98.31% <100.00%> (+0.05%) ⬆️
crates/ditto-checker/src/module/mod.rs 98.83% <0.00%> (+0.38%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

let builder = std::thread::Builder::new();

let handler = builder
.stack_size(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to increase the stack size for tests to pass on windows 😬

Hopefully this is just a debug build problem...

@jmackie jmackie merged commit 7c8cdbd into main Jan 3, 2023
@jmackie jmackie deleted the fix-type-alias-checking branch January 3, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant