solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/419_interface_structs.sol
Christian Parpart a211b89118 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-14 00:24:43 +01:00

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.