Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't coalesce tag with underscore (#4274)
... in the coverage warnings. Repro: ``` Motoko type A = { #a : { f : Int; g : Text }; #b : (Char, Char); #c : ?Nat; #d : Nat }; var a : A = #d 42; switch a {case (#d 1) ()}; ``` Gives > stdin:13.1-13.26: warning [M0145], this switch of type > {#a : {f : Int; g : Text}; #b : (Char, Char); #c : ?Nat; #d : Nat} > does not cover value > #d(0 or 2 or _) or > #a(_) or **#b_** or #c(_)
- Loading branch information