mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
367 B
Solidity
15 lines
367 B
Solidity
library L {
|
|
function f(uint a) internal pure {}
|
|
function g(uint a) internal pure {}
|
|
}
|
|
contract C {
|
|
using L for *;
|
|
function f(bool x) pure public {
|
|
uint t = 8;
|
|
(x ? t.f : t.g)();
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9717: (196-199): Invalid mobile type in true expression.
|
|
// TypeError 3703: (202-205): Invalid mobile type in false expression.
|