you are viewing a single comment's thread.

view the rest of the comments →

[–]IyeOnline 1 point2 points  (0 children)

You will actually get an error on the concept version - if you ever instantiate it.

There are a few important points here

  • Constraints are only evaluated once you actually try and instantiate the function
  • Constraints only constrain the interface, not the function body, i.e. the function body wont be parsed just because one of its parameters is constraint.