mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
add constraint validation code (currently unused)
This commit is contained in:
parent
86ffd430d7
commit
b5c655c84d
3 changed files with 118 additions and 2 deletions
|
@ -850,6 +850,14 @@ pub struct VariableDetail {
|
|||
pub recursion_variables: MutSet<Variable>,
|
||||
}
|
||||
|
||||
impl VariableDetail {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.type_variables.is_empty()
|
||||
&& self.lambda_set_variables.is_empty()
|
||||
&& self.recursion_variables.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
fn variables_help_detailed(tipe: &Type, accum: &mut VariableDetail) {
|
||||
use Type::*;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue