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
e4704548
Commit
e4704548
authored
Mar 24, 2004
by
Ronny Wichers Schreur
🏘
Browse files
bug fix for semi-abstract type definitons: generate type function for all type definitions
parent
2537fd2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/typereify.icl
View file @
e4704548
...
...
@@ -55,6 +55,8 @@ instance isTypeSynonym (TypeDef a) | isTypeSynonym a where
isTypeSynonym
{
td_rhs
}
=
isTypeSynonym
td_rhs
// Currently type functions are generated for all types, including type
// synonyms. This should be changed to only type synonyms that are abstract.
instance
isTypeSynonym
TypeRhs
where
isTypeSynonym
(
AlgType
_)
=
False
...
...
@@ -63,9 +65,9 @@ instance isTypeSynonym TypeRhs where
isTypeSynonym
(
AbstractType
_)
=
False
isTypeSynonym
(
SynType
_)
=
False
// True
=
False
isTypeSynonym
(
AbstractSynType
_
_)
=
Tru
e
=
Fals
e
add_dcl_type_fun_types
::
TypeSymbIdent
Int
*{#
DclModule
}
*
VarHeap
*
SymbolTable
->
(*{#
DclModule
},
*
VarHeap
,
*
SymbolTable
)
...
...
Write
Preview
Markdown
is supported
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