mirror of
https://github.com/apple/swift.git
synced 2026-10-16 16:50:49 +02:00
17 lines
858 B
Swift
17 lines
858 B
Swift
// {"kind":"emit-silgen","original":"1ba21848","signature":"swift::Lowering::LValue::addNonMemberVarComponent(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::VarDecl*, swift::SubstitutionMap, swift::Lowering::LValueOptions, swift::Lowering::SGFAccessKind, swift::AccessStrategy, swift::CanType, std::__1::optional<swift::ActorIsolation>)","signatureAssert":"Assertion failed: ((AccessKind == SGFAccessKind::BorrowedObjectRead || AccessKind == SGFAccessKind::BorrowedAddressRead) && \"non-borrow component requires an address base\"), function emitUsingStorage","signatureNext":"emitLValueForNonMemberVarDecl"}
|
|
// RUN: not --crash %target-swift-frontend -emit-silgen %s
|
|
@propertyWrapper struct a<b> {
|
|
init(wrappedValue: b) {
|
|
}
|
|
var wrappedValue: b {
|
|
}
|
|
var projectedValue: a {
|
|
get {
|
|
}
|
|
set {
|
|
}
|
|
}
|
|
}
|
|
func c<b>(@a d: b) {
|
|
}
|