E.g. Fcntl stub:
F_DUPFD = 'INT2NUM(F_DUPFD)'
F_GETFD = 'INT2NUM(F_GETFD)'
Thus we will infer String type for constants above. Either we can do clever heuristics and genereate in this case:
F_DUPFD = 0 # Fake value for indexing
F_GETFD = 0 # Fake value for indexing
or at least generate:
F_DUPFD = nil # Unknown type used for indexing
F_GETFD = nil # Unknown type used for indexing
until we have above heuristics. Also could be handled in Type Analyzer directly, but that workaround solution.
Forgot to assign to me. I should probably change default owner of some areas. To be discussed by email, whether you(Tor)
want to watch such Ruby issues.
I suppose this isn't of that high importance, e.g. int2num seems to used only three files for constants that I think are not used too often.