4

I just have no means of testing it out myself right now.

contract A() {
     function() {
          throw;
     }
}
contract B is A() {}
4

Using Browser-Solidity, I compiled and deployed contract B with the following code:

contract A {
    function() {
        throw;
    }
}
contract B is A() {
}

I executed a sendTransaction(...) to B (fallback) and the Out Of Gas error was thrown.

So the answer is Yes.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.