cqcallaw / newt

The newt programming language
GNU General Public License v3.0
12 stars 2 forks source link

Rewrite semantic analysis of return statements so it’s actually informative #17

Closed cqcallaw closed 7 years ago

cqcallaw commented 8 years ago

This is particularly bad if the return type is undefined.

cqcallaw commented 8 years ago

The current implementation also doesn't support sum types.

cqcallaw commented 8 years ago

Another bug: functions without a return statement trigger an assert.