Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0050-sr3159.swift
Slava Pestov 412559af79 Add test cases for a few bugs that seem to be fixed already
Cleaning out some old JIRAs, don't want these to regress...
2017-01-04 02:02:29 -08:00

17 lines
512 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
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
}