flow icon indicating copy to clipboard operation
flow copied to clipboard

Singleton number types do not support negative numbers

Open pasha-mf opened this issue 11 years ago • 0 comments

var star_rating: 0 | 1 | 2 | 3 | 4 | 5 = 0; // ok
var direction: 1 | 0 | -1 = 1; // fails

Saying +1 instead of 1 will also generate an error.

pasha-mf avatar Sep 03 '15 18:09 pasha-mf