Skip to content
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

version pragma accepts partial string literals in any position #14826

Open
OmarTawfik opened this issue Jan 31, 2024 · 2 comments · May be fixed by #14886
Open

version pragma accepts partial string literals in any position #14826

OmarTawfik opened this issue Jan 31, 2024 · 2 comments · May be fixed by #14886

Comments

@OmarTawfik
Copy link

Considering the following example:

// all these are legal, and equivalent:
pragma solidity "0.8";
pragma solidity "0." 8;
pragma solidity "0" .8;
pragma solidity 0.8;

// same for single-quoted strings:
pragma solidity 0 '.' 8;
pragma solidity '0.8';

// they can also be used with other operators, mixed the raw syntax:
pragma solidity "0.7" - 0.8 || '0.9';

I wonder if this is intended? If not, what would be the correct/intended subset?
Thanks!

Copy link

github-actions bot commented May 1, 2024

This issue has been marked as stale due to inactivity for the last 90 days.
It will be automatically closed in 7 days.

@github-actions github-actions bot added the stale The issue/PR was marked as stale because it has been open for too long. label May 1, 2024
@fvictorio
Copy link
Contributor

Not stale.

@github-actions github-actions bot removed the stale The issue/PR was marked as stale because it has been open for too long. label May 2, 2024
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 a pull request may close this issue.

2 participants