Add missing testcases

pull/108/head
Josselin 6 years ago
parent d5c439c5d2
commit eb1a848283
  1. 9
      tests/shadowing_abstract.sol
  2. 21
      tests/shadowing_state_variable.sol

@ -0,0 +1,9 @@
contract BaseContract{
address owner;
}
contract DerivedContract is BaseContract{
address owner;
}

@ -0,0 +1,21 @@
contract BaseContract{
address owner;
modifier isOwner(){
require(owner == msg.sender);
_;
}
}
contract DerivedContract is BaseContract{
address owner;
constructor(){
owner = msg.sender;
}
function withdraw() isOwner() external{
msg.sender.transfer(this.balance);
}
}
Loading…
Cancel
Save