Files
swift-mirror/validation-test/compiler_crashers_fixed/ExprRewriter-visitDeclRefExpr-3b6836.swift
Hamish Knight 61a5ae8e01 [CS] Eagerly bind hole in recordInvalidNode
We know this is where the issue is so we can immediately bind to a hole,
ensuring we don't produce unnecessary downstream diagnostics from
things we can't infer.
2025-11-16 11:47:21 +00:00

10 lines
293 B
Swift

// {"kind":"typecheck","signature":"(anonymous namespace)::ExprRewriter::visitDeclRefExpr(swift::DeclRefExpr*)"}
// RUN: not %target-swift-frontend -typecheck %s
{
for b 0 ..< 10 {
let a = Array(0 ..< b)
for c d a{
for e d c... {
Array(a[c ..< e].reversed())
f