question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add test for pragma version statement

See original GitHub issue

pragma solidity ^0.4.0 pragma solidity 0.4.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
elenadimitrovacommented, Oct 26, 2016

Also adding that pragma statement should be at the top so therefore change importstatement rule as well, which otherwise throws:

[ERROR] At line: 3, column: 0 -> Import statement must be at the top of the file.
1reaction
duaraghav8commented, Nov 5, 2016

@elenadimitrova @tymat v0.2.0 solves the problems discussed above. But if something still doesn’t work, please re-open

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pragma statements supported by SQLite
The PRAGMA statement is an SQL extension specific to SQLite and used to modify the operation of the SQLite library or to query...
Read more >
Testing by Example — Remix - Ethereum IDE 1 documentation
In this example, we test setting & getting variables. Contract/Program to be tested: Simple_storage.sol. pragma solidity ...
Read more >
Consider showing a warning when pragma & compiler ...
This can be done simply by checking if the ^ keyword exists in pragma and if it does check whether the version is...
Read more >
Pragmas - DuckDB
The PRAGMA statement is an SQL extension adopted by DuckDB from SQLite. PRAGMA statements can be issued in a similar manner to regular...
Read more >
warning pragma | Microsoft Learn
Enables selective modification of the behavior of compiler warning messages. Syntax. #pragma warning( warning-specifier : warning-number-list [ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found