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/TypeCoercion/protocols.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ var fp : FormattedPrintable = IsPrintable1()
119
119
varip1:IsPrintable1
120
120
121
121
refCoercion(&p)
122
-
refCoercion(&fp) // expected-error{{cannot pass immutable value of type 'MyPrintable' as inout argument}}
122
+
refCoercion(&fp) // expected-error{{cannot pass immutable value as inout argument: implicit conversion from 'FormattedPrintable' to 'MyPrintable' requires a temporary}}
123
123
refCoercion(&ip1) // expected-error{{cannot pass immutable value as inout argument: implicit conversion from 'IsPrintable1' to 'MyPrintable' requires a temporary}}
0 commit comments