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 neReturn(span:RawSpan)->RawSpan{ span } // expected-error{{a function with a ~Escapable result requires '-enable-experimental-feature LifetimeDependence'}}
13
13
14
-
func neInout(span:inoutRawSpan){} // expected-error{{a function with a ~Escapable 'inout' parameter requires '-enable-experimental-feature LifetimeDependence'}}
14
+
func neInout(span:inoutRawSpan){} // OK
15
+
16
+
func neInoutNEParam(span:inoutRawSpan, _:RawSpan){} // expected-error{{a function with a ~Escapable 'inout' parameter requires '-enable-experimental-feature LifetimeDependence'}}
15
17
16
18
structS{
17
19
func neReturn(span:RawSpan)->RawSpan{ span } // expected-error{{a method with a ~Escapable result requires '-enable-experimental-feature LifetimeDependence'}}
18
20
19
-
func neInout(span:inoutRawSpan){} // expected-error{{a method with a ~Escapable 'inout' parameter requires '-enable-experimental-feature LifetimeDependence'}}
21
+
func neInout(span:inoutRawSpan){} // OK
22
+
23
+
func neInoutNEParam(span:inoutRawSpan, _:RawSpan){} // expected-error{{a method with a ~Escapable 'inout' parameter requires '-enable-experimental-feature LifetimeDependence'}}
24
+
25
+
mutatingfunc mutatingNEInout(span:inoutRawSpan){} // OK
26
+
27
+
mutatingfunc mutatingNEInoutParam(span:inoutRawSpan, _:RawSpan){} // expected-error{{a mutating method with a ~Escapable 'inout' parameter requires '-enable-experimental-feature LifetimeDependence'}}
20
28
}
21
29
22
30
classC{
23
31
func neReturn(span:RawSpan)->RawSpan{ span } // expected-error{{a method with a ~Escapable result requires '-enable-experimental-feature LifetimeDependence'}}
func neReturn(span:RawSpan)->RawSpan{ span } // expected-error{{a method with a ~Escapable result requires '-enable-experimental-feature LifetimeDependence'}}
42
+
25
43
func neInout(span:inoutRawSpan){} // expected-error{{a method with a ~Escapable 'inout' parameter requires '-enable-experimental-feature LifetimeDependence'}}
0 commit comments