Can no longer use functions as dictionary keys

This commit is contained in:
2022-09-11 13:36:59 +01:00
parent 2d171dd664
commit 0f6be5ead7
2 changed files with 23 additions and 4 deletions

View File

@@ -380,7 +380,8 @@ int hashLiteral(Literal lit) {
}
case LITERAL_FUNCTION:
return 0;
case LITERAL_FUNCTION_NATIVE:
return 0; //TODO: find a way to hash these properly
case LITERAL_IDENTIFIER:
return HASH_I(lit); //pre-computed