FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Throw needs to be type-agnostic #389

Closed BSteffaniak closed 7 years ago

BSteffaniak commented 7 years ago

Throw expressions should take on the expected type, for compilation reasons.

e.g.

visible Int days => throw new InfiniteIntervalException("days")

should return a type of Int

BSteffaniak commented 7 years ago

7d958e1