mirror of https://github.com/crytic/slither
Merge pull request #1545 from crytic/dev-top-level-struct
Fix top level struct parsingpull/1554/head
commit
222e382226
Binary file not shown.
@ -0,0 +1,3 @@ |
|||||||
|
{ |
||||||
|
"BaseContract": {} |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
struct my_struct { |
||||||
|
uint[][] a; // works fine |
||||||
|
uint[][3] b; // works fine |
||||||
|
uint[3][] c; // fails |
||||||
|
uint[3][3] d; // fails |
||||||
|
uint[2**20] e; // works fine |
||||||
|
} |
||||||
|
contract BaseContract{ |
||||||
|
struct my_struct_2 { |
||||||
|
uint[][] f; // works fine |
||||||
|
uint[][3] g; // works fine |
||||||
|
uint[3][] h; // works fine |
||||||
|
uint[3][3] i; // works fine |
||||||
|
uint[2**20] j; // works fine |
||||||
|
} |
||||||
|
|
||||||
|
uint[3][] k; // works fine |
||||||
|
} |
Loading…
Reference in new issue