mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Finish first pass of Str.fromUtf8
This commit is contained in:
parent
815f633a58
commit
f3d9c2f2bb
12 changed files with 591 additions and 159 deletions
|
@ -1191,7 +1191,11 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
let bad_utf8 = SolvedType::TagUnion(
|
||||
vec![(
|
||||
TagName::Global("BadUtf8".into()),
|
||||
vec![builtin_aliases::str_utf8_problem_type()],
|
||||
// vec![builtin_aliases::str_utf8_problem_type()],
|
||||
vec![
|
||||
builtin_aliases::str_utf8_byte_problem_type(),
|
||||
builtin_aliases::nat_type(),
|
||||
],
|
||||
)],
|
||||
Box::new(SolvedType::Wildcard),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue