mirror of
https://github.com/apple/swift.git
synced 2026-10-24 20:15:56 +02:00
11 lines
388 B
Swift
11 lines
388 B
Swift
// {"kind":"typecheck","original":"07aed66d","signature":"(anonymous namespace)::ConstraintGenerator::visitKeyPathExpr(swift::KeyPathExpr*)","signatureNext":"ConstraintWalker::walkToExprPost"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
macro
|
|
@freestanding(declaration arbitrary) macro a(for : AnyKeyPath = <#expression#>)
|
|
struct b {
|
|
var
|
|
c:
|
|
String
|
|
}
|
|
#a(for : \b.c)
|