Files
swift-mirror/validation-test/IDE/crashers_fixed/6cef534b98d6b512.swift
Hamish Knight 7e537b7f00 [CS] Ensure type variables are eliminated by Solution::simplifyType
`TypeSimplifier` may not eliminate type variables from e.g the
pattern types of pattern expansion types since they can remain
unresolved due to e.g having a placeholder count type. Make sure we
eliminate any remaining type variables along with the placeholders.
There's probably a more principled fix here, but this is a quick and
low risk fix we can hopefully take for 6.2.

rdar://154954995
2025-07-03 17:53:23 +01:00

5 lines
292 B
Swift

// {"kind":"complete","signature":"swift::constraints::Solution::simplifyType(swift::Type, bool) const"}
// RUN: %target-swift-ide-test -code-completion --code-completion-token=COMPLETE -code-completion-diagnostics -source-filename %s
for (a(b, d)) [
#^COMPLETE^#, 0, (repeat.c)].enumerated(