Tests/Docs after disallowing super, this and _ as declaration names

This commit is contained in:
hrkrshnn
2020-11-25 11:14:13 +01:00
parent 1a6f0fe52f
commit a834476de6
25 changed files with 336 additions and 67 deletions
@@ -0,0 +1,11 @@
contract C {
modifier this { _; }
modifier super { _; }
modifier _ { _; }
}
// ----
// DeclarationError 3726: (14-34): The name "this" is reserved.
// DeclarationError 3726: (36-57): The name "super" is reserved.
// DeclarationError 3726: (59-76): The name "_" is reserved.
// Warning 2319: (14-34): This declaration shadows a builtin symbol.
// Warning 2319: (36-57): This declaration shadows a builtin symbol.