tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
275 stars 56 forks source link

Typechecker should infer most general type for conditional expression's branches #428

Closed anton-trunov closed 1 week ago

anton-trunov commented 1 week ago

For instance, the following should typecheck:

fun foo(): Int? { return true ? 42 : null; }

This is a follow-up on #392.