mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
238 B
Solidity
16 lines
238 B
Solidity
|
==== Source: A ====
|
||
|
contract C {
|
||
|
}
|
||
|
==== Source: B ====
|
||
|
import "A" as M;
|
||
|
|
||
|
contract C {
|
||
|
function f() public pure returns (bool) {
|
||
|
bool flag;
|
||
|
((flag = true) ? M : M).C;
|
||
|
return flag;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// f() -> true
|