mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Issue warning for variables called super or this
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user