# Raise Objection Syntax

**URL:** <https://verificationacademy.com/forums/t/raise-objection-syntax/32723>\
**Category:** UVM\
**Tags:** objection-syntax, UVM, illegal-declaration, SystemVerilog-Syntax\
**Created:** [January 4, 2017, 11:29am UTC](https://verificationacademy.com/forums/t/raise-objection-syntax/32723 "2017-01-04T11:29:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![frodus](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/f/e95f7d/32.png) [@frodus](https://verificationacademy.com/forums/u/frodus)\
**Post date:** [January 4, 2017, 11:55am UTC](https://verificationacademy.com/forums/t/raise-objection-syntax/32723/2 "2017-01-04T11:55:09Z")

</div>

_In reply to [enbiya.h](https://verificationacademy.com/forums/t/raise-objection-syntax/32723):_

Hi,

in system verilog it is not allowed to declare variables after a command.

In verilog a task was defined like this:

task a();  
reg i = 0;  
begin  
call\_to\_function();  
endtask;

In system verilog it is allowed to leave the begin out but you still have to follow the  
order.

I hope this helps bye

---

_[View the full topic](https://verificationacademy.com/forums/t/raise-objection-syntax/32723)._
