solidity/test/libsolidity/syntaxTests/conversion/not_allowed_conversion_from_super.sol
2019-11-19 17:14:11 +01:00

16 lines
261 B
Solidity

contract S
{
int o;
function foo() public returns (int) { return o = 3; }
}
contract B is S
{
function fii() public
{
o = S(super).foo();
}
}
// ----
// TypeError: (129-137): Explicit type conversion not allowed from "contract super B" to "contract S".