The compiler infers the type of `@[newContainer()]` to be `seq[Container]`, 
which does not conform to `@seq[Object]` (covariance).

To make the type of an array or sequence explicit, cast the first element, e.g.:
    
    
    discard newContainer(contents= @[Object newContainer()])
    
    
    Run

Reply via email to