Merge branch 'trunk' into builtins-refactor-list-take

This commit is contained in:
satotake 2021-11-13 03:38:29 +00:00 committed by GitHub
commit 4359dcff73
29 changed files with 593 additions and 424 deletions

View file

@ -1388,6 +1388,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
Box::new(flex(TVAR1)),
);
// isOk : Result * * -> bool
add_top_level_function_type!(
Symbol::RESULT_IS_OK,
vec![result_type(flex(TVAR1), flex(TVAR3))],
Box::new(bool_type()),
);
types
}