fork download
  1. type
  2. Entity = object of RootObj
  3.  
  4. ObjectOne = object of Entity
  5.  
  6. ObjectTwo = object of Entity
  7.  
  8. Repository[T: Entity] = ref object of RootObj
  9.  
  10. SqliteRepository[T: Entity] = ref object of Repository[T]
  11.  
  12. when isMainModule:
  13. var r: SqliteRepository[ObjectOne]
  14. # ...
  15.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(13, 7) Error: invalid type: 'SqliteRepository[SqliteRepository.T]'
stdout
Standard output is empty