Commit 2e54cbf8
2e54cbf8af94Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 2 files · ~2 modified
Description
Add File.binread support
Co-Authored-By: Claude Sonnet 4.6 [email protected]
Details
- Commit
- 2e54cbf8af94
- Parent
- 8bb23dfdde79
src/analyze.cmodifiedView file
@@ -466,7 +466,7 @@
466466
if (rty && !strcmp(rty, "ConstantReadNode") &&467467
nt_str(nt, recv, "name") && !strcmp(nt_str(nt, recv, "name"), "File")) {468468
if (!strcmp(name, "basename") || !strcmp(name, "dirname") || !strcmp(name, "extname") ||469-
!strcmp(name, "read") || !strcmp(name, "expand_path"))469+
!strcmp(name, "read") || !strcmp(name, "binread") || !strcmp(name, "expand_path"))470470
return TY_STRING;471471
if (!strcmp(name, "exist?") || !strcmp(name, "exists?"))472472
return TY_BOOL;src/codegen.cmodifiedView file
Loading diff…