It is possible for a right-hand side to have a collection class type, but be assignable to a left-hand side that does not have a collection class type, without requiring collection conversion. For instance, the LHS type could be "any", or it could be a non-collection-class superclass of the collection class. These cases are not being properly accounted for, resulting in incorrect insertion of calls to the "toSequence" operation.
It is possible for a right-hand side to have a collection class type, but be assignable to a left-hand side that does not have a collection class type, without requiring collection conversion. For instance, the LHS type could be "any", or it could be a non-collection-class superclass of the collection class. These cases are not being properly accounted for, resulting in incorrect insertion of calls to the "toSequence" operation.