Skip to content
GitLab
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
265f1eab
Commit
265f1eab
authored
Oct 09, 2013
by
John van Groningen
Browse files
prevent crash if a newtype is used with -dynamics
parent
a1971e18
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/type_io.icl
View file @
265f1eab
...
...
@@ -103,10 +103,10 @@ where
=
fwritei
(
get_type_var_nf_number
v
)
tcl_file
#
wtis
&
wtis_type_heaps
=
{
wtis_type_heaps
&
th_vars
=
th_vars
}
=
(
tcl_file
,
wtis
)
where
get_type_var_nf_number
(
TVI_Normalized
i
)
=
i
=
(
tcl_file
,
wtis
)
where
get_type_var_nf_number
(
TVI_Normalized
i
)
=
i
instance
WriteTypeInfo
TypeRhs
where
write_type_info
(
AlgType
defined_symbols
)
tcl_file
wtis
...
...
@@ -134,6 +134,10 @@ where
write_type_info
(
AlgConses
_
_)
tcl_file
wtis
// unimplemented
=
(
tcl_file
,
wtis
)
write_type_info
(
NewType
_)
tcl_file
wtis
#!
tcl_file
=
fwritec
AbstractTypeCode
tcl_file
;
// unimplemented
=
(
tcl_file
,
wtis
)
instance
WriteTypeInfo
DefinedSymbol
where
...
...
@@ -392,7 +396,7 @@ write_type_info_of_array i limit array tcl_file wtis
#
(
tcl_file
,
wtis
)
=
write_type_info
array
.[
i
]
tcl_file
wtis
=
write_type_info_of_array
(
inc
i
)
limit
array
tcl_file
wtis
instance
WriteTypeInfo
[
a
]
|
WriteTypeInfo
a
where
write_type_info
l
tcl_file
wtis
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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