temperlang / temper

3 stars 0 forks source link

Bubble isn't a nominal type so can't be used as an upper bound. #109

Open mikesamuel opened 8 months ago

mikesamuel commented 8 months ago

let f<T extends Bubble>(): Null | T { null } fails without explanation.

It should not fail, but also, having a formal type definition with an invalid bound should not fail silently.