Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

[SoM] generic functions with constraints aren't showing the constraints in C# #70

Open
stephen-hawley opened this issue Apr 23, 2019 · 1 comment
Milestone

Comments

@stephen-hawley
Copy link
Contributor

Look at ComparableTests.ClassLess in the generated file TopLevelEntities.cs. It should have a where T:ISwiftComparable clause.

@stephen-hawley stephen-hawley transferred this issue from another repository Oct 29, 2019
@chamons chamons added this to the Future milestone Nov 14, 2019
@stephen-hawley
Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants