Tests: Add additional array method tests and error

This commit is contained in:
Wilson Snyder
2020-10-17 19:23:27 -04:00
parent f62c070d06
commit 964dcd5b7c
10 changed files with 413 additions and 3 deletions
+4
View File
@@ -2386,6 +2386,10 @@ private:
newp->protect(false);
newp->makeStatement();
}
} else if (nodep->name() == "sort" || nodep->name() == "rsort"
|| nodep->name() == "reverse" || nodep->name() == "shuffle") {
nodep->v3error("Array method " << nodep->prettyNameQ()
<< " not legal on associative arrays");
} else {
nodep->v3error("Unknown built-in associative array method " << nodep->prettyNameQ());
}