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
func applyAnnotatedTransfer(ne:NE, transfer:(NE)->dependsOn(0) NE)->NE{ // expected-error{{Lifetime dependencies on function types are not yet supported}}
20
+
transfer(ne)
21
+
}
22
+
23
+
func applyTransfer(ne:NE, transfer:(NE)->NE)->NE{
24
+
transfer(ne)
25
+
}
26
+
27
+
func testTransfer(nc:consumingNC){
28
+
lettransferred=applyTransfer(ne: nc.ne, transfer: transfer) // expected-error{{Conversion between function types with different lifetime dependencies are not allowed}}
letborrowed=applyBorrow(nc: nc, borrow: borrow) // expected-error{{Conversion between function types with different lifetime dependencies are not allowed}}
0 commit comments