Skip to content

[Strings] Be stricter when checking builtin types#7829

Merged
tlively merged 2 commits intomainfrom
strict-builtin-types
Aug 15, 2025
Merged

[Strings] Be stricter when checking builtin types#7829
tlively merged 2 commits intomainfrom
strict-builtin-types

Conversation

@tlively
Copy link
Copy Markdown
Member

@tlively tlively commented Aug 14, 2025

String builtins should not only have the expected signatures, they
should also have the expected types. For example, if a builtin has a
signature that is in a nontrivial rec group or has a supertype or is not
final, that should be a validation error. Reject such incorrect types in
StringLifting.

String builtins should not only have the expected signatures, they
should also have the expected types. For example, if a builtin has a
signature that is in a nontrivial rec group or has a supertype or is not
final, that should be a validation error. Reject such incorrect types in
StringLifting.
@tlively tlively requested a review from kripken August 14, 2025 23:22
@@ -0,0 +1,24 @@
;; The imported js string method here has the correct signature, but the wrong
;; type. We shoudl error.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
;; type. We shoudl error.
;; type. We should error.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, I even asked Gemini to proofread for me. Maybe I wrote this after doing that 😅

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pleased to hear my job as proofreader (possibly) remains safe 🙏

@tlively tlively enabled auto-merge (squash) August 15, 2025 16:26
@tlively tlively merged commit 5602876 into main Aug 15, 2025
16 checks passed
@tlively tlively deleted the strict-builtin-types branch August 15, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants