Toxaris / pts

Interpreter for functional pure type systems.
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

Assert should check types before checking assertion #74

Closed Toxaris closed 9 years ago

Toxaris commented 9 years ago

Currently, the statement assert 1 : foo complains that 1 has the wrong type. Instead, it should complain that foo is not in scope.

Not sure whether the same problem exists with assert 1 = foo. For example, what is the effect of assert foo = foo if foo is not in scope.