mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
560 B
Swift
19 lines
560 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
// https://github.com/apple/swift/issues/45747
|
|
|
|
public class Entity{
|
|
}
|
|
public class DataCollection<T>{
|
|
}
|
|
public protocol IEntityCollection : class{
|
|
func AddEntity(_ entity:Entity)
|
|
}
|
|
public class EntityCollection<T:Entity> : DataCollection<T>, IEntityCollection{
|
|
public func AddEntity(_ entity: Entity) {}
|
|
}
|
|
public class EntityReference2<TParentEntityCollection:EntityCollection<TParentEntity>, TChildEntityCollection:EntityCollection<TChildEntity>, TChildEntity:Entity, TParentEntity:Entity>
|
|
{
|
|
public let i = 0
|
|
}
|