Additional tests for edge cases for mutability, visibility, location, experimental, global, indexed and anonymous

This commit is contained in:
vlad
2023-01-20 20:05:36 +01:00
committed by Kamil Śliwak
parent 7fbd36855d
commit 484ee8a621
57 changed files with 1794 additions and 183 deletions
@@ -0,0 +1,16 @@
==== Source: A ====
uint indexed a;
==== Source: B ====
contract test {
function f(uint a) public {
uint indexed a;
}
}
==== Source: C ====
contract test {
uint indexed a;
}
// ----
// ParserError 2314: (A:5-12): Expected identifier but got 'indexed'
// ParserError 2314: (B:61-68): Expected ';' but got 'indexed'
// ParserError 2314: (C:25-32): Expected identifier but got 'indexed'