mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
798 B
Swift
11 lines
798 B
Swift
// {"kind":"typecheck","signature":"createPropertyStoreOrCallSuperclassSetter(swift::AccessorDecl*, swift::Expr*, swift::AbstractStorageDecl*, (anonymous namespace)::TargetImpl, llvm::SmallVectorImpl<swift::ASTNode>&, swift::ASTContext&)","signatureAssert":"Assertion failed: (destType->getOptionalObjectType()), function createPropertyStoreOrCallSuperclassSetter"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
@propertyWrapper struct a < b {
|
|
wrappedValue : b static subscript<c>(_enclosingInstance d
|
|
: c, wrapped e
|
|
: ReferenceWritableKeyPath<c, b>
|
|
storage f
|
|
: ReferenceWritableKeyPath<c, Self>) Self
|
|
} class g {
|
|
@a h = 7
|