You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type Constraints are a Swift feature where the type in a generic function or class can be restricted based on whether it implements either a given protocol or a given class:
func myFunc<T:Equatable>(param:T){
// function body
}
Dart has a similar feature where a generic is constrained to extend a given class.
This should be relatively easy to parse, as the symbol graph provides constraints information concerning this
The text was updated successfully, but these errors were encountered:
For the sake of completeness, this issue will also include support for type constraints for extensions, which is enforced in swift via the where clause.
extensionCollectionwhere Element:SomeProtocol{func someFunc()->Boolwhere Element:Numeric{
// function body
}}
Type Constraints are a Swift feature where the type in a generic function or class can be restricted based on whether it implements either a given protocol or a given class:
Dart has a similar feature where a generic is constrained to extend a given class.
This should be relatively easy to parse, as the symbol graph provides constraints information concerning this
The text was updated successfully, but these errors were encountered: