# test @error with a specific error message # also test that it can take place in the middle of any code class Program def main is shared x = 1 @warning 'user-defined warning' # .warning. user-defined @error 'internal error' # .error. internal error y = 2