Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/virtwww/w_code-sampc3e_56a7b680/http/includes/common.inc).

Generic type class conformity in Swift

class Vehicle {
    func Test() {
        //Implementation
    }
}

class Car: Vehicle { }

class Truck {}

class Service<T: Vehicle> {
    var list: [T] = []
    
    func add(item: T) {
        list.append(item)
    }
    
    func test() {
        for item in list {
            item.Test()
        }
    }
}

let vehicle = Vehicle()
let car = Car()
let truck = Truck()

let service = Service()
service.add(vehicle)
service.add(car)
service.test()

service.add(truck)//<- Error