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
importtype{Option}from"effect";import{Match}from"effect";Match.type<[Option.Option<string>,Option.Option<string>]>().pipe(Match.when([{_tag: "Some"},{_tag: "Some"}],([a,b])=>voidconsole.log(`a ${a.value}, b ${b.value}`),),Match.when([{_tag: "None"},{_tag: "Some"}],([_,b])=>voidconsole.log(`b ${b.value}`),),Match.when([{_tag: "Some"},{_tag: "None"}],([a,_])=>voidconsole.log(`a ${a.value}`),),Match.when([{_tag: "None"},{_tag: "None"}],()=>voidconsole.log("none")),// Type Error: Type `[Option<string>, Option<string>]` is not assignable to type `never`Match.exhaustive,);
What version of Effect is running?
3.2.3
What steps can reproduce the bug?
TS Playground
What is the expected behavior?
The
exhaustive
check should pass at the type level.What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: