When adding constraints programmatically, the element type of the added constraint types currently isn't evaluated. That way it is e.g. possible to add a class-level constraint to a property or field.
Also check that {{returnValue()}} is not invoked for void methods.
|