You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it will take solidity version from File2.sol, sometimes it will take solidity version from File1.sol.
What is problem?
If it randomly takes files and it takes pragma of File2.sol it will take solc 0.6.12 which will not be able to compile File1.
Here is a test which proves this:
Solidity:
File1.sol:
I had a problem when I pulled a project which had different versions of solidity files.
Example:
File1.sol:
pragma solidity >0.5.0 <=0.6.0
File2.sol
pragma solidity >0.5.0 <=0.7.0
Sometimes it will take solidity version from File2.sol, sometimes it will take solidity version from File1.sol.
What is problem?
If it randomly takes files and it takes pragma of File2.sol it will take solc 0.6.12 which will not be able to compile File1.
Here is a test which proves this:
Solidity:
File1.sol:
File2.sol:
Java:
First commit in the PR #71 has the test which does not work and commit after contains a simple approach to the solution.
The text was updated successfully, but these errors were encountered: