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
Method functions (method fn foo) cannot be used without any parameter.
> (+) ;;
<stdin>:1:1-3: fatal error: Variable (+) is registered as method add and cannot be used without argument
However, it would make sense to allow them provided that they are in type-check mode, when type type is an arrow with a neutral type on argument position. The motivating example is a sum of elements of a list:
Method functions (
method fn foo
) cannot be used without any parameter.However, it would make sense to allow them provided that they are in type-check mode, when type type is an arrow with a neutral type on argument position. The motivating example is a sum of elements of a list:
or writing a code like in
Eval.ml
:The text was updated successfully, but these errors were encountered: