2020-03-09 21:14:07 +00:00
|
|
|
contract C {
|
|
|
|
function intern() public returns (uint256) {
|
|
|
|
function (uint) internal returns (uint) x;
|
|
|
|
x(2);
|
|
|
|
return 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
function extern() public returns (uint256) {
|
|
|
|
function (uint) external returns (uint) x;
|
|
|
|
x(2);
|
|
|
|
return 7;
|
|
|
|
}
|
|
|
|
}
|
2020-04-17 20:24:33 +00:00
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2021-03-12 23:02:36 +00:00
|
|
|
// compileViaYul: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
2020-10-13 11:28:39 +00:00
|
|
|
// intern() -> FAILURE, hex"4e487b71", 0x51 # This should throw exceptions #
|
2020-03-09 21:14:07 +00:00
|
|
|
// extern() -> FAILURE
|