Files
swift-mirror/validation-test/compiler_crashers_fixed/ASTScopeImpl-addChild-e4b31d.swift
Hamish Knight 73823aa737 [Parse] Avoid overlapping ASTScope children for implicit NamedPatterns
When forming an implicit NamedPattern for a computed property, use
the existing pattern location rather than the location of the `var`.
2026-06-16 00:46:33 +01:00

8 lines
288 B
Swift

// {"kind":"typecheck","original":"cb3e622a","signature":"swift::ast_scope::ASTScopeImpl::addChild(swift::ast_scope::ASTScopeImpl*, swift::ASTContext&)","signatureNext":"ScopeCreator::constructExpandAndInsert"}
// RUN: not %target-swift-frontend -typecheck %s
{
let a,
() {
}
}