mirror of
https://github.com/apple/swift.git
synced 2026-10-26 20:15:53 +01:00
When forming an implicit NamedPattern for a computed property, use the existing pattern location rather than the location of the `var`.
8 lines
288 B
Swift
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,
|
|
() {
|
|
}
|
|
}
|