mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
261 B
Solidity
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".
|