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
fooOW({(x :inoutInt)inreturnInt(5)}) // expected-error {{cannot convert value of type '(inout Int) -> Int' to expected argument type '(_) -> _'}}
41
+
fooOW({(x :inoutInt)inreturnInt(5)}) // expected-error {{cannot convert value of type '(inout Int) -> Int' to expected argument type '(__owned _) -> _'}}
fooIO({(x :__shared Int)inreturnInt(5)}) // expected-error {{cannot convert value of type '(__shared Int) -> Int' to expected argument type '(inout _) -> _'}}
45
45
fooIO({(x :Int)inreturnInt(5)}) // expected-error {{cannot convert value of type '(inout Int) -> Int' to expected argument type '(inout _) -> _'}}
46
+
fooIO({(x :__shared Int)inreturnInt(5)}) // expected-error {{cannot convert value of type '(__shared Int) -> Int' to expected argument type '(inout _) -> _'}}
47
+
fooIO({(x :__owned Int)inreturnInt(5)}) // expected-error {{cannot convert value of type '(__owned Int) -> Int' to expected argument type '(inout _) -> _'}}
fooSH({(x :inoutInt)inreturnInt(5)}) // expected-error {{cannot convert value of type '(inout Int) -> Int' to expected argument type '(__shared _) -> _'}}
0 commit comments