stedolan / counterexamples

Counterexamples in Type Systems
http://counterexamples.org
372 stars 23 forks source link

Fix first example in "intersecting references" #8

Closed wchargin closed 3 years ago

wchargin commented 3 years ago

The nat ref ∧ pos ref cell should be initialized to hold 1 (or any other pos), not 0, so that it's a valid pos ref.

wchargin-branch: intersecting-references-pos-init

stedolan commented 3 years ago

Hah, thanks, nice catch. (For the record, the mistake wasn't present in the Davies & Pfenning paper, I typo'd it when copying it out)