# Syntax error in a code block

**URL:** <https://verificationacademy.com/forums/t/syntax-error-in-a-code-block/37973>\
**Category:** UVM\
**Tags:** UVM, SystemVerilog, syntax-error\
**Created:** [August 19, 2020, 7:15pm UTC](https://verificationacademy.com/forums/t/syntax-error-in-a-code-block/37973 "2020-08-19T19:15:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![khaledismail](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/2acd7d/32.png) [@khaledismail](https://verificationacademy.com/forums/u/khaledismail)\
**Post date:** [August 19, 2020, 8:14pm UTC](https://verificationacademy.com/forums/t/syntax-error-in-a-code-block/37973/3 "2020-08-19T20:14:43Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/syntax-error-in-a-code-block/37973/2):_

The definition of req\_kind is:

```verilog

class my_transaction extends uvm_sequence_item;
   typedef enum {REQ, NO_REQ} req_kind_e;
   rand req_kind_e req_kind;
...
...
...

```

and the class my\_transaction is type forwarded in the file where the compilation error is present:

```verilog
typedef class my_transaction;

```

The code block in question is a sequence in a sequence library where m\_request\_fifo is the port used in the slave sequencer to retrieve the sequence.

---

_[View the full topic](https://verificationacademy.com/forums/t/syntax-error-in-a-code-block/37973)._
