I have some checks in my projects that will throw compile time errors if you do not have a required method defined, or adding an annotation to an instance method vs class method.
Is there a way to test these compile time error get thrown as expected; similar to expect_raises or the assert_error method in the stdlib?
Similar, would be more interested in making sure the correct compile time error is thrown than just a true/false if it compiles or not tho.
assert_error "routing/compiler/actions/no_return_type.cr", "Route action return type must be set for 'CompileController.no_return_type'"