This repository was archived by the owner on May 4, 2024. It is now read-only.
This repository was archived by the owner on May 4, 2024. It is now read-only.
[inline functions] Allow lambda parameters to be typed #806
Open
Description
Currently the lambda expressions we are using for inline fun
are derived from older support of lambdas in the specification language. Those lambdas (|v|e
) do not allow for type annotations (|v:t|e
). But we need the later since the Move compiler does not always infer the desired types, and annotations are needed. The current workaround is to use |v| { let v : T = v; e }
.