Open maxteufel opened 6 months ago
Type inference here is ambiguous since it may change if y
would be used in another place where e.g. array (Sequence T))
would be expected.
Does it work if [[1,2,3], [...]]
is directly passed to f
?
Type inference here is ambiguous since it may change if
y
would be used in another place where e.g.array (Sequence T))
would be expected. Does it work if[[1,2,3], [...]]
is directly passed tof
?
It doesn't work either. But maybe my phrasing is wrong, it is obviously perfectly fine if the type gets inferred to be list (list i32)
, but this should be assignment compatible with Sequence (Sequence i32)
.