Interface definition

Syntax

Nested interfaces are not allowed; interfaces are only allowed in package blocks and top-level region.

The interface block must only contain function definitions.

    InterfaceDefinition :
      interface IdentifierName TypeParametersopt ExtendsList Block

Interface inheritance

Syntax

    ExtendsList :
      «empty»
      extends TypeExpressionList