We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b6ac5 commit 1d18a3bCopy full SHA for 1d18a3b
test/decl/var/property_wrappers.swift
@@ -1091,3 +1091,18 @@ struct InvalidPropertyDelegateUse {
1091
self.x.foo() // expected-error {{value of type 'Int' has no member 'foo'}}
1092
}
1093
1094
+
1095
+// SR-11060
1096
1097
+class SR_11060_Class {
1098
+ @SR_11060_Wrapper var property: Int = 1234 // expected-error {{missing argument for parameter 'string' in call}}{{20-20=(string: <#String#>)}}
1099
+}
1100
1101
+@propertyWrapper
1102
+struct SR_11060_Wrapper {
1103
+ var wrappedValue: Int
1104
1105
+ init(wrappedValue: Int, string: String) { // expected-note {{'init(wrappedValue:string:)' declared here}}
1106
+ self.wrappedValue = wrappedValue
1107
+ }
1108
0 commit comments