We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d76319 + aac9c4d commit 2f658f1Copy full SHA for 2f658f1
validation-test/IDE/crashers/fd52bd37cd5c96.swift
@@ -1,5 +1,10 @@
1
// {"kind":"complete","original":"ea806f48","signature":"swift::Type::transformRec(llvm::function_ref<std::__1::optional<swift::Type> (swift::TypeBase*)>) const"}
2
-// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
+// The issue here is that the solver attempts to recursively apply the same
3
+// dynamic member lookup until eventually it overflows the stack. Make sure
4
+// we either timeout or crash.
5
+// RUN: not %{python} %S/../../../test/Inputs/timeout.py 60 \
6
+// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s || \
7
+// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
8
@dynamicMemberLookup
9
struct a<b{
10
c: () -> b^subscript<d>(dynamicMember e: WritableKeyPath<b, d>) a<d> }
0 commit comments