Skip to content

compatible-pragma

Checks that the minimum supported pragma version is compatible with the features used in the file.

Examples of incorrect code for this rule:

pragma solidity ^0.8.0;
// top-level errors were introduced in solidity 0.8.22
error MyError();