Disallow conversion to super.

This commit is contained in:
chriseth
2020-12-01 14:15:50 +01:00
parent 6de7eaba95
commit 6d1454fce6
3 changed files with 23 additions and 0 deletions
@@ -0,0 +1,7 @@
contract C {
function f() public pure {
super().x;
}
}
// ----
// TypeError 1744: (52-59): Cannot convert to the super type.
@@ -0,0 +1,7 @@
contract C {
function f() public pure {
super(this).f();
}
}
// ----
// TypeError 1744: (52-63): Cannot convert to the super type.