mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Set an upper bound on the number of chained lookups we attempt to avoid spinning while trying to recursively apply the same dynamic member lookup to itself. rdar://157288911
9 lines
445 B
Swift
9 lines
445 B
Swift
// {"kind":"complete","original":"ea806f48","signature":"swift::Type::transformRec(llvm::function_ref<std::__1::optional<swift::Type> (swift::TypeBase*)>) const"}
|
|
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
|
|
@dynamicMemberLookup
|
|
struct a<b{
|
|
c: () -> b^subscript<d>(dynamicMember e: WritableKeyPath<b, d>) a<d> }
|
|
let binding = a
|
|
{ buffer #^^#??
|
|
binding.0
|