mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Remove str_type
This commit is contained in:
parent
f1180a1549
commit
c66a0f53c6
2 changed files with 1 additions and 10 deletions
|
@ -358,11 +358,7 @@ pub fn constrain_pattern(
|
|||
}
|
||||
|
||||
StrLiteral(_) => {
|
||||
// TODO(types-soa) use Types::STR
|
||||
let str_type = {
|
||||
let typ = types.from_old_type(&builtins::str_type());
|
||||
constraints.push_type(types, typ)
|
||||
};
|
||||
let str_type = constraints.push_type(types, Types::STR);
|
||||
state.constraints.push(constraints.equal_pattern_types(
|
||||
str_type,
|
||||
expected,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue