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
0cbab374
Commit
0cbab374
authored
May 04, 2001
by
Martin Wierich
Browse files
bugfix: compiler crash at
definition module spetiul f :: a | == a special a=Int
parent
396a16c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/checktypes.icl
View file @
0cbab374
...
...
@@ -858,8 +858,8 @@ checkTypeContext mod_index tc=:{tc_class=tc_class=:{glob_object=class_name=:{ds_
tc
=
{
tc
&
tc_class
=
{
tc_class
&
glob_object
=
{
class_name
&
ds_index
=
class_index
},
glob_module
=
class_module
},
tc_types
=
tc_types
}
|
class_def
.
class_arity
==
ds_arity
=
(
tc
,
(
class_defs
,
ots
,
oti
,
cs
))
=
(
tc
,
(
class_defs
,
ots
,
oti
,
{
cs
&
cs_error
=
checkError
id_name
"used with wrong arity"
cs
.
cs_error
}))
=
(
tc
,
(
class_defs
,
ots
,
oti
,
{
cs
&
cs_error
=
checkError
id_name
"undefined"
cs
.
cs_error
}))
=
(
tc
,
(
class_defs
,
ots
,
oti
,
{
cs
&
cs_error
=
checkError
id_name
"used with wrong arity"
cs
.
cs_error
}))
=
(
{
tc
&
tc_types
=
[]}
,
(
class_defs
,
ots
,
oti
,
{
cs
&
cs_error
=
checkError
id_name
"undefined"
cs
.
cs_error
}))
where
check_context_types
tc_class
[]
cs
=:{
cs_error
}
=
{
cs
&
cs_error
=
checkError
tc_class
"type context should contain one or more type variables"
cs_error
}
...
...
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