Adds support for structs in interfaces.

Closes #4733.
This commit is contained in:
Christian Parpart
2018-08-14 15:36:03 +02:00
committed by Christian Parpart
parent 8f0c2a46db
commit 81faafe7f2
5 changed files with 72 additions and 7 deletions
@@ -1,9 +1,6 @@
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.