binding-tools-for-swift
binding-tools-for-swift copied to clipboard
[SoM] generic functions with constraints aren't showing the constraints in C#
Look at ComparableTests.ClassLess in the generated file TopLevelEntities.cs. It should have a where T:ISwiftComparable clause.
Steve says: look at this closer when associated types are fully complete.
For now, I have a notion of something called a discretionary constraint, which recognizes that there are/were issues in associated type modeling. In reality, the signature of the interface is wrong. It should be ISwiftComparable<TSelf> : ISwiftEquatable<TSelf> where TSelf : ISwiftComparable<TSelf> I think.