Add types for Str.startsWith

This commit is contained in:
Dimitar Apostolov 2020-09-20 14:11:34 +02:00 committed by Dimitar Apostolov
parent 9e1836dde0
commit b82baf55e7
3 changed files with 24 additions and 0 deletions

View file

@ -192,6 +192,18 @@ mod solve_expr {
);
}
#[test]
fn string_starts_with() {
infer_eq_without_problem(
indoc!(
r#"
Str.startsWith
"#
),
"Str, Str -> Bool",
);
}
// #[test]
// fn block_string_literal() {
// infer_eq(