diff --git a/sourcepawn/compiler/sc1.cpp b/sourcepawn/compiler/sc1.cpp index cb1a7520..9f8e80b7 100644 --- a/sourcepawn/compiler/sc1.cpp +++ b/sourcepawn/compiler/sc1.cpp @@ -5470,9 +5470,6 @@ static int declargs(symbol *sym, int chkshadow, const int *thistag) check_void_decl(&decl, TRUE); - if (decl.is_new && (sym->usage & uNATIVE) && decl.type.tag == pc_anytag) - error(156); - if (decl.type.ident == iVARARGS) { assert(decl.type.numtags > 0); if ((sym->usage & uPROTOTYPED)==0) { diff --git a/sourcepawn/compiler/sc5-in.scp b/sourcepawn/compiler/sc5-in.scp index f7ec5a24..8d905438 100644 --- a/sourcepawn/compiler/sc5-in.scp +++ b/sourcepawn/compiler/sc5-in.scp @@ -199,7 +199,7 @@ static const char *errmsg[] = { /*153*/ "cannot use non-public functions as callbacks\n", /*154*/ "cannot assign INVALID_FUNCTION to a non-function type\n", /*155*/ "expected newline, but found '%s'\n", -/*156*/ "the 'any' type is not allowed in new-style natives\n", +/*156*/ "unused156\n", /*157*/ "'%s' is a reserved keyword\n", /*158*/ "multi-tags are no longer supported\n", #else diff --git a/sourcepawn/compiler/tests/fail-any-in-new-native.sp b/sourcepawn/compiler/tests/fail-any-in-new-native.sp deleted file mode 100644 index 2bcb9934..00000000 --- a/sourcepawn/compiler/tests/fail-any-in-new-native.sp +++ /dev/null @@ -1,5 +0,0 @@ -native Crab(any x); - -public main() -{ -} diff --git a/sourcepawn/compiler/tests/fail-any-in-new-native.txt b/sourcepawn/compiler/tests/fail-any-in-new-native.txt deleted file mode 100644 index 81c80557..00000000 --- a/sourcepawn/compiler/tests/fail-any-in-new-native.txt +++ /dev/null @@ -1 +0,0 @@ -(1) : error 156: the 'any' type is not allowed in new-style natives