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
mutating nonmutating func g(){} // expected-error {{method must not be declared both mutating and nonmutating}}
513
-
__consuming nonmutating func h(){} // expected-error {{method must not be declared both __consuming and nonmutating}}
514
-
__consuming mutatingfunc i(){} // expected-error {{method must not be declared both __consuming and mutating}}
515
-
nonmutating mutatingfunc j(){} // expected-error {{method must not be declared both nonmutating and mutating}}
516
-
__consuming nonmutating mutatingfunc k(){} // expected-error {{method must not be declared both __consuming and mutating}} expected-error {{method must not be declared both nonmutating and mutating}}
512
+
mutating nonmutating func g(){} // expected-error {{method must not be declared both 'mutating' and 'nonmutating'}}
513
+
__consuming nonmutating func h(){} // expected-error {{method must not be declared both '__consuming' and 'nonmutating'}}
514
+
__consuming mutatingfunc i(){} // expected-error {{method must not be declared both '__consuming' and 'mutating'}}
515
+
nonmutating mutatingfunc j(){} // expected-error {{method must not be declared both 'nonmutating' and 'mutating'}}
516
+
__consuming nonmutating mutatingfunc k(){} // expected-error {{method must not be declared both '__consuming' and 'mutating'}} expected-error {{method must not be declared both 'nonmutating' and 'mutating'}}
0 commit comments