Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
95cdb5fa
Commit
95cdb5fa
authored
Apr 20, 2005
by
John van Groningen
Browse files
function clear_attributes in function freshSymbolType was not called
because the resulting th_attrs were not stored in the type heaps
parent
29d13072
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/type.icl
View file @
95cdb5fa
...
...
@@ -798,7 +798,7 @@ freshSymbolType is_appl fresh_context_vars st=:{st_vars,st_args,st_result,st_con
=
fresh_arg_types
is_appl
st_args
(
ts_var_store
,
ts_attr_store
,
ts_exis_variables
,
type_heaps
)
(
tst_result
,
type_heaps
)
=
freshCopy
st_result
type_heaps
(
tst_context
,
(
type_heaps
,
ts_var_heap
))
=
freshTypeContexts
fresh_context_vars
st_context
(
type_heaps
,
ts_var_heap
)
th_attrs
=
clear_attributes
st_attr_vars
th_attrs
type_heaps
=
{
type_heaps
&
th_attrs
=
clear_attributes
st_attr_vars
type_heaps
.
th_attrs
}
cons_variables
=
foldSt
(
collect_cons_variables_in_tc
common_defs
)
tst_context
[]
=
({
tst_args
=
tst_args
,
tst_result
=
tst_result
,
tst_context
=
tst_context
,
tst_attr_env
=
attr_env
,
tst_arity
=
st_arity
,
tst_lifted
=
0
},
{
ts
&
ts_var_store
=
ts_var_store
,
ts_attr_store
=
ts_attr_store
,
ts_type_heaps
=
type_heaps
,
ts_var_heap
=
ts_var_heap
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment