Files
swift-mirror/test/SourceKit/CursorInfo/rdar_99096663.swift
Alex Hoppen 8f421a7e06 [SourceKit] Fix a crash because the API for retrieving intherited protocols of a ProtocolDecl changed
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
2022-08-24 23:19:31 +02:00

5 lines
132 B
Swift

// This should not crash
// RUN: %sourcekitd-test -req=cursor -cursor-action -pos=4:11 %s -- %s
extension RandomAccessCollection