Fix null dereference in using for directive when operator name is empty

This commit is contained in:
Matheus Aguiar
2023-04-18 14:23:58 -03:00
parent ee1b50d345
commit 64f57ac3c7
2 changed files with 14 additions and 1 deletions
@@ -0,0 +1,7 @@
using {f as ''} for uint;
using {f as ""} for int;
using {f as hex""} for address;
// ----
// ParserError 4403: (12-14): Not a user-definable operator: . Only the following operators can be user-defined: |, &, ^, ~, +, -, *, /, %, ==, !=, <, >, <=, >=
// ParserError 4403: (38-40): Not a user-definable operator: . Only the following operators can be user-defined: |, &, ^, ~, +, -, *, /, %, ==, !=, <, >, <=, >=
// ParserError 4403: (63-68): Not a user-definable operator: . Only the following operators can be user-defined: |, &, ^, ~, +, -, *, /, %, ==, !=, <, >, <=, >=