because you specifically restricted Container to only accept Job. terrible error message, yikes.
you'd need to type Job = object of RootObj id:string GetPriceJob = object of Job message:string Container[T:Job | GetPriceJob] = object job: T Run or type Job = ref object of RootObj id:string GetPriceJob = ref object of Job message: string Container = object job:Job Run