degory / ghul

compiler for the ghūl programming language
https://ghul.dev
GNU Affero General Public License v3.0
4 stars 0 forks source link

Pass type constraints through if let and nested if #1160

Closed degory closed 7 months ago

degory commented 7 months ago

Some contexts such as return statements create type constraints that improve type inference in if expressions.

These constraints should be passed through let in to any if in the following expression and also through any nested if expressions.