Merge pull request #12361 from mejsiej/improved-err-msg-when-getter-returns-nothing

Changed the message of the error thrown when the structure has all it's members omitted
This commit is contained in:
chriseth
2021-12-20 21:06:14 +01:00
committed by GitHub
2 changed files with 9 additions and 2 deletions
@@ -3,4 +3,4 @@ contract test {
Data public data;
}
// ----
// TypeError 6744: (58-74): Internal or recursive type is not allowed for public state variables.
// TypeError 5359: (58-74): The struct has all its members omitted, therefore the getter cannot return any values.