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
fb93653e
Commit
fb93653e
authored
May 11, 2001
by
Martin Wierich
Browse files
improving error message
parent
af2321c6
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/checktypes.icl
View file @
fb93653e
implementation
module
checktypes
import
StdEnv
import
syntax
,
checksupport
,
check
,
typesupport
,
utilities
//, RWSDebug
import
syntax
,
checksupport
,
check
,
typesupport
,
utilities
,
compilerSwitches
//, RWSDebug
::
TypeSymbols
=
...
...
@@ -863,6 +864,8 @@ checkTypeContext mod_index tc=:{tc_class=tc_class=:{glob_object=class_name=:{ds_
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
}
check_context_types
tc_class
[((
CV
{
tv_name
})
:@:
_):_]
cs
=:{
cs_error
}
=
{
cs
&
cs_error
=
checkError
tv_name
"not allowed as higher order type variable in context"
cs_error
}
check_context_types
tc_class
[
TV
_
:
types
]
cs
=
cs
check_context_types
tc_class
[
type
:
types
]
cs
...
...
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