Interface

- Added super interface stuff
feature/structural_typing
Tristan B. V. Kildaire 5 months ago
parent e9cdc3563c
commit 7a862e086c

@ -486,6 +486,7 @@ public class Clazz : Type, Container
public final class Interface : Type, Container
{
private string[] _sis; // super-interfaces
private Statement[] statements;
// TODO: Implement me
@ -497,6 +498,16 @@ public final class Interface : Type, Container
weight = 0;
}
public string[] superInterfaces()
{
return _sis;
}
public void addSuperInterface(string iname)
{
_sis ~= iname;
}
public void addStatement(Statement statement)
{
this.statements ~= statement;

Loading…
Cancel
Save