Choose hash implementation for ranged number based on default width

Closes #4416
This commit is contained in:
Ayaz Hafiz 2022-11-16 13:57:03 -06:00
parent 3305041316
commit 9c8a4ec027
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 94 additions and 33 deletions

View file

@ -8220,4 +8220,20 @@ mod solve_expr {
"{} -> Task",
)
}
#[test]
fn choose_ranged_num_for_hash() {
infer_queries!(
indoc!(
r#"
app "test" provides [main] to "./platform"
main =
\h -> Hash.hash h 7
# ^^^^^^^^^
"#
),
@"Hash#Hash.hash(1) : a, I64 -[[Hash.hashI64(12)]]-> a | a has Hasher"
)
}
}