When comparing a generic with an invalid type it creates an error during compile time
Closed this issue · 0 comments
Ashvin-Ranjan commented
When comparing a generic with a NoneType
in resolve_equal_special_types
you will get this error:
Traceback (most recent call last):
File "n.py", line 207, in <module>
File "n.py", line 118, in run_file
File "n.py", line 114, in run_file
File "n.py", line 38, in type_check
File "scope.py", line 2220, in type_check_command
File "scope.py", line 1581, in type_check_expr
File "scope.py", line 1519, in type_check_expr
File "scope.py", line 2036, in type_check_command
File "scope.py", line 2509, in type_check_command
File "scope.py", line 1585, in type_check_expr
File "type.py", line 270, in resolve_equal_types
File "type.py", line 242, in resolve_equal_special_types
TypeError: object of type 'NoneType' has no len()
[3772] Failed to execute script n