plow-technologies / inferno

A statically-typed functional scripting language
MIT License
4 stars 1 forks source link

Add type annotations to let expressions #89

Closed siddharth-krishna closed 1 year ago

siddharth-krishna commented 1 year ago

This PR allows adding type annotations to let declarations:

// Type error:
let t : int -> int = truncate in t 43.3

// OK. y should have type int
let x : int = 3 in let y = truncate x in y