mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
227 B
Solidity
15 lines
227 B
Solidity
|
// SPDX-License-Identifier: GPL-3.0
|
||
|
pragma solidity >=0.0;
|
||
|
|
||
|
contract Ext {
|
||
|
function f() public view returns (uint) {
|
||
|
return 42;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contract test {
|
||
|
function g(Ext e) public view {
|
||
|
uint x = e.f();
|
||
|
assert(x == 42);
|
||
|
}
|
||
|
}
|