pragma solidity ^0.4.11;<br/>

    contract ERC165 {

         function interfaceID() constant returns (uint)
            bytes4[] sigs = type(this).signatures;
            uint mask = 0;
            for (var i = 0; i < sigs.length; i++)
            mask ^= uint(sigs[i]);
        return mask;

2 Answers 2


type(this) isn't valid Solidity code. I can't really suggest a fix, because I have no idea what you're trying to do.


I think is something under development. That code come from here https://gist.github.com/axic/5d42693fab09acfa2fdd977f38805833

there is an issue in github for that: https://github.com/ethereum/solidity/issues/1447 seems to be a feature that we'll see on solc 0.5.1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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