mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* Emit a warning diagnostic if an extension contains a redundant requirement * Updates diagnostic message and checks if the extension type is a protocol * Updates indentation and extracts self type * [ast] Updates diagnostic message * [ast] fix indentation * [ast] Change ':' to 'to' in 'protocol_extension_redundant_requirement' * [sema] Adds protocol extension redundant requirement check Moved from TypeCheckRequests to TypeCheckGeneric * [ast] fix some crashes related to null ptrs, check self type before emitting a diagnostic, update tests * [ast] renames 'owner' to 'ext' * [sema] fix style * [test] Add another test case for redundant requirement Co-Authored-By: theblixguy <suyashsrijan@outlook.com> * [test] fix failing test The test was failing because A has already been declared as a typealias.
25 KiB
25 KiB