You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/decl/var/property_wrappers.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1097,9 +1097,9 @@ struct TestComposition {
1097
1097
@WrapperD<WrapperC,Int,String>@WrapperCvarp4:Int?
1098
1098
@WrapperD<WrapperC,Int,String>@WrapperEvarp5:Int // expected-error{{generic parameter 'Value' could not be inferred}}
1099
1099
// expected-note@-1 {{explicitly specify the generic arguments to fix this issue}}
1100
-
// expected-error@-2 {{composed wrapper type 'WrapperE<Int>' does not match the type of 'WrapperD<WrapperC<_>, Int, String>'.wrappedValue, which is 'WrapperC<Value>'}}
1100
+
// expected-error@-2 {{composed wrapper type 'WrapperE<Int>' does not match type of 'WrapperD<WrapperC<Value>, Int, String>.wrappedValue', which is 'WrapperC<Value>'}}
1101
1101
1102
-
@Wrapper<String>@Wrappervarvalue:Int // expected-error{{composed wrapper type 'Wrapper<Int>' does not match the type of 'Wrapper<String>'.wrappedValue, which is 'String'}}
1102
+
@Wrapper<String>@Wrappervarvalue:Int // expected-error{{composed wrapper type 'Wrapper<Int>' does not match type of 'Wrapper<String>.wrappedValue', which is 'String'}}
1103
1103
1104
1104
func triggerErrors(d:Double){ // expected-note 6 {{mark method 'mutating' to make 'self' mutable}} {{2-2=mutating }}
1105
1105
p1 = d // expected-error{{cannot assign value of type 'Double' to type 'Int?'}} {{8-8=Int(}} {{9-9=)}}
0 commit comments