Issue warning for variables called super or this

This commit is contained in:
Mathias Baumann
2019-05-02 11:30:24 +02:00
parent 00172192bf
commit cf35e5ba02
7 changed files with 42 additions and 28 deletions
@@ -0,0 +1,11 @@
contract C {
function f() pure public {
uint super = 3;
uint this = 4;
}
}
// ----
// Warning: (52-62): This declaration shadows a builtin symbol.
// Warning: (76-85): This declaration shadows a builtin symbol.
// Warning: (52-62): Unused local variable.
// Warning: (76-85): Unused local variable.