mirror of
https://github.com/HigherOrderCO/Kind1.git
synced 2024-09-11 08:45:32 +03:00
fix: problems with dependency of record fields
This commit is contained in:
parent
94e979e3d3
commit
4056ecaa66
@ -258,8 +258,10 @@ impl Visitor for UnboundCollector {
|
||||
TopLevel::RecordType(entr) => {
|
||||
let inside_vars = self.context_vars.clone();
|
||||
visit_vec!(entr.parameters.iter_mut(), arg => self.visit_argument(arg));
|
||||
visit_vec!(entr.fields.iter_mut(), (_, _, typ) => {
|
||||
|
||||
visit_vec!(entr.fields.iter_mut(), (name, _, typ) => {
|
||||
self.visit_expr(typ);
|
||||
self.context_vars.push((name.range, name.to_string()))
|
||||
});
|
||||
|
||||
self.context_vars = inside_vars;
|
||||
|
@ -0,0 +1 @@
|
||||
Ok!
|
@ -0,0 +1,4 @@
|
||||
record FieldDependency {
|
||||
ty : Type
|
||||
snd : ty
|
||||
}
|
Loading…
Reference in New Issue
Block a user