mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Type checker] Check generic parameter inheritance clauses later.
Move the checking of generic parameter inheritance clauses into the DeclChecker, getting it out of signature computation and out of the TypeChecker instance.
This commit is contained in:
@@ -1486,7 +1486,7 @@ ERROR(extension_nongeneric_trailing_where,none,
|
||||
"trailing 'where' clause for extension of non-generic type %0",
|
||||
(DeclName))
|
||||
ERROR(extension_protocol_inheritance,none,
|
||||
"extension of protocol %0 cannot have an inheritance clause", (Type))
|
||||
"extension of protocol %0 cannot have an inheritance clause", (DeclName))
|
||||
ERROR(objc_generic_extension_using_type_parameter,none,
|
||||
"extension of a generic Objective-C class cannot access the class's "
|
||||
"generic parameters at runtime", ())
|
||||
|
||||
Reference in New Issue
Block a user