Files
swift-mirror/validation-test/IDE/crashers_fixed/fd52bd37cd5c96.swift
Hamish Knight fb7f2d0ff2 [CS] Limit the number of chained @dynamicMemberLookup lookups
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
2025-08-01 19:08:04 +01:00

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