-
Notifications
You must be signed in to change notification settings - Fork 11
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
type check lambdas when last op (body) is set #217
Conversation
* fixed bug in alpha-equiv - relaged to #174? * fixed bug in lower_matrix_mediumlevel.cpp (wrong filter type) * still some problems when trying to infer return type of lam
@NeuralCoder3 can you double-check my changes in |
@@ -250,7 +250,7 @@ Ref LowerMatrixMediumLevel::rewrite_(Ref def) { | |||
iterator[idx] = world.call<core::bitcast>(world.type_idx(dim_nat_def), iter); | |||
auto [new_mem, new_mat] = new_acc->projs<2>(); | |||
acc = {new_mem, new_mat}; | |||
current_mut->set(dim_nat_def, for_call); | |||
current_mut->set(false, for_call); // TODO correct filter? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dim_nat_def
filter was wrong.
false
is okay. But true
as a filter should also work.
These functions just call the for-loop (they are just wrappers).
Therefore, we could always unfold the wrapper.
The build of bfdcd46 seems to fail. |
umax(0, ?) == 1