qorelanguage / qore

Qore Programming Language
GNU General Public License v2.0
58 stars 10 forks source link

-= operator should not fail at runtime with an empty hash #4873

Closed davidnich closed 6 months ago

davidnich commented 6 months ago

ex:

prompt$ qore -ne '*hash<string, bool> h; h -= (1,); printf("%y\n", h);'     
unhandled QORE System exception thrown in TID 1 at 2024-01-03 13:37:16.923729 Wed +01:00 (CET) at <command-line>:1 (Qore builtin code)
RUNTIME-TYPE-ERROR: <lvalue> expects type '*hash<string, bool>', but got type 'integer' instead