You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x(a Q : Sequence R) => say "Q $Q R $R"
x [1,2,3]
x i32 (array i32) [1,2,3]
it works
> ./build/bin/fz test_free.fz
Q Type of 'array i32' R Type of 'i32'
Q Type of 'array i32' R Type of 'i32'
but it is surprising that in the call without type inference x i32 (array i32) [1,2,3], the actual argument for R, which is i32 has to come before that for Q even though in the declaration, the order to the free types is Q before R.
The text was updated successfully, but these errors were encountered:
Take this example with type parameters
Q
andR
it works
but it is surprising that in the call without type inference
x i32 (array i32) [1,2,3]
, the actual argument forR
, which isi32
has to come before that forQ
even though in the declaration, the order to the free types isQ
beforeR
.The text was updated successfully, but these errors were encountered: