Improve error coverage of parser

This commit is contained in:
a3d4
2020-08-19 01:37:11 +02:00
parent 660ef792ab
commit 0f5d0b6455
4 changed files with 14 additions and 18 deletions
@@ -0,0 +1,5 @@
contract C {
modifier f() override override {}
}
// ----
// ParserError 9102: (39-47): Override already specified.
@@ -0,0 +1,7 @@
contract C {
uint private internal a;
function f() private external {}
}
// ----
// ParserError 4110: (30-38): Visibility already specified as "private".
// ParserError 9439: (67-75): Visibility already specified as "private".