This website requires JavaScript.
Explore
Help
Sign In
cerc-io
/
solidity
Watch
16
Star
0
Fork
0
You've already forked solidity
mirror of
https://github.com/ethereum/solidity
synced
2023-10-03 13:03:40 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
05e608d778
solidity
/
test
/
libsolidity
/
syntaxTests
/
empty_struct.sol
6 lines
102 B
Solidity
Raw
Normal View
History
Unescape
Escape
Disallow empty structs
2018-03-27 13:38:28 +00:00
contract
test
{
struct
A
{
}
}
// ----
Enforce disallowing empty structs This patch enfoces an error when it encounters an empty struct, effectively eliminating the deprecation warning. Also adjust 419_interface_structs to explicitely test for (non-empty) structs, as this behaviour "may" change in the future.
2018-06-06 09:15:22 +00:00
// SyntaxError: (17-28): Defining empty structs is disallowed.
Reference in New Issue
Copy Permalink