lambda-mountain icon indicating copy to clipboard operation
lambda-mountain copied to clipboard

Soundness hole in match expressions that use wrong type destructure

Open andrew-johnson-4 opened this issue 1 year ago • 0 comments
trafficstars

(match term (
   ()
   ( (NotATerm( _ _ )) () )
))

The current macro system won't raise an error because of the hard cast inside these branch destructors. The type system is partially to blame and the "match" macro implementation is wholly responsible.

andrew-johnson-4 avatar Oct 07 '24 03:10 andrew-johnson-4