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
As I understand it, non-partial active patterns may not have extra parameters:
let inline(|Lt|Gt|Eq|)compareWith x =if x < compareWith then Lt
elif x > compareWith then Gt
else Eq
match2with| Lt 3->()//^^^^// Type mismatch. Expecting a 'int -> Choice<'a,'b,'c>' but given a// 'int -> int -> Choice<unit,unit,unit>' The type 'Choice<'a,'b,'c>'// does not match the type 'int -> Choice<unit,unit,unit>'
The error is very confusing. It would be better to have an error on the active pattern definition itself.
The text was updated successfully, but these errors were encountered:
As I understand it, non-partial active patterns may not have extra parameters:
The error is very confusing. It would be better to have an error on the active pattern definition itself.
The text was updated successfully, but these errors were encountered: