Skip to content

Always error on overshifts #59520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

weswigham
Copy link
Member

@weswigham weswigham commented Aug 2, 2024

To see if making it always an error instead of a suggestion is viable.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Aug 2, 2024
@weswigham
Copy link
Member Author

@typescript-bot user test this
@typescript-bot test top600

@typescript-bot
Copy link
Collaborator

typescript-bot commented Aug 2, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
user test this ✅ Started 👀 Results
test top600 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

@weswigham Here are the results of running the user tests with tsc comparing main and refs/pull/59520/merge:

Something interesting changed - please have a look.

Details

webpack

assembly/tsconfig.json

@weswigham
Copy link
Member Author

weswigham commented Aug 2, 2024 via email

@RyanCavanaugh
Copy link
Member

Seems idiomatic in asm? It's declared

let result: u64;

so presumably you can 32-shift it

@typescript-bot
Copy link
Collaborator

@weswigham Here are the results of running the top 600 repos with tsc comparing main and refs/pull/59520/merge:

Everything looks good!

@weswigham
Copy link
Member Author

Well, not breaking AssemblyScript u64 idioms is probably as good a reason as any to leave it as a suggestion only outside enums.

@weswigham weswigham closed this Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants