Bug converting untyped list #1360

This commit is contained in:
Christoffer Lerno
2024-08-16 18:33:30 +02:00
parent f1efdf3d98
commit 16cb756d3f
5 changed files with 39 additions and 3 deletions

View File

@@ -1,10 +1,20 @@
module test;
import std::collections::map;
def Foo = HashMap(<String, HashMap(<String, String>)>);
fn void main()
{
HashMap(<String, String>) map;
HashMap(<String, String>) map0;
map0["c3c"] = {};
Foo map;
map["c3c"] = {};
map["c3c"] = { {}, null, 1 ,2 ,2 };
HashMap(<String, HashMap(<String, String>)>) map2;
map2["c3c"] = {};
map2["c3c"] = { {}, null, 1 ,2 ,2 };
}
/* #expect: test.ll