solidity/test/libsolidity/semanticTests/fallback/inherited.sol

13 lines
240 B
Solidity
Raw Normal View History

contract A {
uint data;
fallback() external { data = 1; }
function getData() public returns (uint r) { return data; }
}
contract B is A {}
// ====
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
// ----
// getData() -> 0
// (): 42 ->
// getData() -> 1