struct Node { data T } fn foo(n Node) string { return '$n' } fn test_generics_fn_infer_struct() { ret1 := foo(Node{}) println(ret1) assert ret1.contains('Node{') assert ret1.contains('data: 0') ret2 := foo(Node{}) println(ret2) assert ret2.contains('Node{') assert ret2.contains('data: 0') }