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
Rename --enable-experimental-opaque-return-types and gate structural … (#38780)
* Rename --enable-experimental-opaque-return-types and gate structural opaque types with a flag
* Separate out structural opaque type result builder tests
// ERROR: 'some' types are only implemented for the declared type of properties and subscripts and the return type of functions
107
-
// let x = { () -> some P in return ConcreteP() }
108
-
109
-
func twoOpaqueTypes()->(someP,someP){return(1,2)} // expected-error{{only one 'opaque' type is supported}}
110
-
func asTupleElemBad()->(P,someQ){return(1,C())} // expected-note{{opaque return type declared here}} expected-error{{requires that 'C' conform to 'Q'}}
0 commit comments