solidity/test/libsolidity/syntaxTests/conversion/not_allowed_conversion_from_super.sol

16 lines
261 B
Solidity
Raw Normal View History

2019-11-19 12:07:32 +00:00
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".