nirum icon indicating copy to clipboard operation
nirum copied to clipboard

Constraints for numeric unboxed types

Open dahlia opened this issue 7 years ago • 0 comments

E.g.:

@numeric-constraints(min=1, max=12)
unboxed month (int32);

Possible options:

  • [x] min (inclusive; cannot be used with greater-than): #271
  • [x] max (inclusive; cannot be used with less-than): #271
  • [ ] greater-than (exclusive; cannot be used with min)
  • [ ] less-than (exclusive; cannot be used with max)

dahlia avatar Jan 04 '18 12:01 dahlia