solidity/test/libsolidity/semanticTests/expressions/module_from_ternary_expression.sol
2023-07-18 10:56:02 +02:00

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