fork download
  1.  
  2. type Operand * = object of system.RootObj
  3. opType*: OperandType
  4.  
  5. type RegOperand * = object of Operand
  6. regType*: int
  7.  
  8.  
  9. let reg = 4
  10. let regOp = RegOperand(reg)
  11.  
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(2, 41) Error: undeclared identifier: 'RootObj'
stdout
Standard output is empty