with the conversion of first element in the `seq` `B(val:1).A` you tell the 
compiler, that you create a `seq[A]`. For the remaining elements you don't need 
the conversion:
    
    
    var a:seq[A] = @[B(val:1).A, B(val:2)]
    
    
    Run

and you can even omit the type declaration for `a`:
    
    
    var a = @[B(val:1).A, B(val:2)]
    
    
    Run

Reply via email to