mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
a211b89118
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.
10 lines
281 B
Solidity
10 lines
281 B
Solidity
interface I {
|
|
struct A {
|
|
// This is currently expected to break, but it *may* change in the future.
|
|
int dummy;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (18-136): Structs cannot be defined in interfaces.
|
|
// TypeError: (120-129): Variables cannot be declared in interfaces.
|