JS: Make test not assume implicit through for maps

This commit is contained in:
Asger F
2024-12-19 14:26:41 +01:00
parent dc2f39c399
commit cd6ebb103e
3 changed files with 5 additions and 4 deletions

View File

@@ -76,12 +76,12 @@ function test() {
{
const grouped = Map.groupBy(x, (item) => sink(item)); // NOT OK
sink(grouped); // NOT OK
sink(grouped.get(unknown())); // NOT OK
}
{
const list = [source()];
const grouped = Map.groupBy(list, (item) => sink(item)); // NOT OK
sink(grouped); // NOT OK [INCONSISTENCY]
sink(grouped.get(unknown())); // NOT OK
}
{
const data = source();