mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
There was a weirdness with ProtocolType::get() that was causing me grief while trying to refactor getDeclaredType() and related code in another patch. Instead of caching the result like we do elsewhere, this would directly store the new type into the ProtocolDecl. This is smelly, so let's not do that.
4 lines
153 B
Swift
4 lines
153 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
|
|
extension{protocol a{func p)struct A{protocol c
|
|
let a{#^A^#
|