-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert explicit evm version error message for try-catch tests in evm <
byzantium
- Loading branch information
Showing
7 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test/libsolidity/syntaxTests/tryCatch/low_level_spuriousDragon.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
contract C { | ||
function f() public { | ||
try this.f() { | ||
|
||
} catch (bytes memory) { | ||
|
||
} | ||
} | ||
} | ||
// ==== | ||
// EVMVersion: =spuriousDragon | ||
// ---- | ||
// TypeError 9908: (73-106): This catch clause type cannot be used on the selected EVM version (spuriousDragon). You need at least a Byzantium-compatible EVM or use `catch { ... }`. |
13 changes: 13 additions & 0 deletions
13
test/libsolidity/syntaxTests/tryCatch/low_level_tangerineWhistle.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
contract C { | ||
function f() public { | ||
try this.f() { | ||
|
||
} catch (bytes memory) { | ||
|
||
} | ||
} | ||
} | ||
// ==== | ||
// EVMVersion: =tangerineWhistle | ||
// ---- | ||
// TypeError 9908: (73-106): This catch clause type cannot be used on the selected EVM version (tangerineWhistle). You need at least a Byzantium-compatible EVM or use `catch { ... }`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
test/libsolidity/syntaxTests/tryCatch/structured_spuriousDragon.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
contract C { | ||
function f() public { | ||
try this.f() { | ||
|
||
} catch Error(string memory) { | ||
|
||
} | ||
} | ||
} | ||
// ==== | ||
// EVMVersion: =spuriousDragon | ||
// ---- | ||
// TypeError 1812: (73-112): This catch clause type cannot be used on the selected EVM version (spuriousDragon). You need at least a Byzantium-compatible EVM or use `catch { ... }`. |
13 changes: 13 additions & 0 deletions
13
test/libsolidity/syntaxTests/tryCatch/structured_tangerineWhistle.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
contract C { | ||
function f() public { | ||
try this.f() { | ||
|
||
} catch Error(string memory) { | ||
|
||
} | ||
} | ||
} | ||
// ==== | ||
// EVMVersion: =tangerineWhistle | ||
// ---- | ||
// TypeError 1812: (73-112): This catch clause type cannot be used on the selected EVM version (tangerineWhistle). You need at least a Byzantium-compatible EVM or use `catch { ... }`. |