mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Constrain + solve crash
This commit is contained in:
parent
9dc489c2b0
commit
e2b30e5301
13 changed files with 194 additions and 60 deletions
|
@ -2961,27 +2961,6 @@ fn type_to_variable<'a>(
|
|||
|
||||
register_with_known_var(subs, destination, rank, pools, content)
|
||||
}
|
||||
Crash => {
|
||||
let magic_return = subs.fresh(Descriptor {
|
||||
content: Content::FlexVar(None),
|
||||
rank,
|
||||
mark: Mark::NONE,
|
||||
copy: OptVariable::NONE,
|
||||
});
|
||||
let magic_lambda_set = subs.fresh(Descriptor {
|
||||
content: Content::FlexVar(None),
|
||||
rank,
|
||||
mark: Mark::NONE,
|
||||
copy: OptVariable::NONE,
|
||||
});
|
||||
let magic_crash = Content::Structure(FlatType::Func(
|
||||
Subs::STR_SLICE,
|
||||
magic_lambda_set,
|
||||
magic_return,
|
||||
));
|
||||
|
||||
register_with_known_var(subs, destination, rank, pools, magic_crash)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue