mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
10 lines
293 B
Swift
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
|