tzuchien.chiu
tzuchien.chiu

Reputation: 700

AS3: An interface implements another interface

I am so surprised that this code compiles, but what does it mean ?

public interface IBar {}
public interface IFoo implements IBar {}

Upvotes: 2

Views: 816

Answers (1)

fsbmain
fsbmain

Reputation: 5267

It can't be compiled because interface can't implement the other interface but can extends it:

public interface IFoo extends IBar {}

Your code must leads to error:

1084: Syntax error: expecting leftbrace before implements.

Upvotes: 4

Related Questions