mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
apple/swift#60716 changed `NominalTypeDecl::getAllProtocols` to no longer work on `ProtocolDecl`. Add a new wrapper to Refactoring.cpp that dispatches to either `getInheritedProtocols` or `getAllProtocols` depending on whether the type is a protocol or not. rdar://99096663
5 lines
132 B
Swift
5 lines
132 B
Swift
// This should not crash
|
|
// RUN: %sourcekitd-test -req=cursor -cursor-action -pos=4:11 %s -- %s
|
|
|
|
extension RandomAccessCollection
|