Files
swift-mirror/validation-test/compiler_crashers/ExprRewriter-buildKeyPathSubscriptComponent-6010fc.swift
T
2026-04-07 10:10:05 +01:00

7 lines
630 B
Swift

// {"kind":"typecheck","original":"e4c403e1","signature":"(anonymous namespace)::ExprRewriter::buildKeyPathSubscriptComponent(swift::constraints::SelectedOverload const&, swift::SourceLoc, swift::ArgumentList*, swift::constraints::ConstraintLocator*, llvm::SmallVectorImpl<swift::KeyPathExpr::Component>&)","signatureAssert":"Assertion failed: (argList->size() == indexHashables.size() || indexHashables.empty()), function Component","signatureNext":"ExprRewriter::visitKeyPathExpr"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a<each b {
subscript(repeat each b) Int {
c
\a<Int, String>[2 ""]