dmd: Deprecate 'in' parameters on non-extern(D,C++) functions (#14951)

This error was introduced in `-preview=in` in v2.101.0.
In order to make `-preview=in` the default, we add a deprecation
even if `-preview=in` is not used.
This commit is contained in:
Mathias LANG 2023-03-08 09:57:41 +01:00 committed by GitHub
parent 6b71b352d8
commit eca46c71ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 44 additions and 14 deletions

View file

@ -31,8 +31,8 @@ struct objc_method_description
}
}
SEL sel_registerName(in char* str);
Protocol* objc_getProtocol(in char* name);
SEL sel_registerName(scope const char* str);
Protocol* objc_getProtocol(scope const char* name);
objc_method_description protocol_getMethodDescription(
Protocol* proto, SEL aSel, bool isRequiredMethod, bool isInstanceMethod
);