mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8d91ccf028
available at compile time is trusted.
13 lines
226 B
Solidity
13 lines
226 B
Solidity
// SPDX-License-Identifier: GPL-3.0
|
|
pragma solidity >=0.0;
|
|
|
|
abstract contract Ext {
|
|
function f() virtual public view returns (uint);
|
|
}
|
|
|
|
contract test {
|
|
function g(Ext e) public view {
|
|
uint x = e.f();
|
|
assert(x == 0);
|
|
}
|
|
} |