function modifiesValField(struct: {val: number}) { struct.val = 0; }
But I do get your point - although type systems have gotten much less annoying, its not like they're perfect.
But I do get your point - although type systems have gotten much less annoying, its not like they're perfect.