Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import text is not generated for interfaces that extend interfaces in other namespaces #1493

fjtheknight opened this issue Aug 29, 2019 · 1 comment


Copy link

commented Aug 29, 2019

If two interfaces are in two different namespaces, and one extend the other one, the import text will not be generated for the extended interface:

The following example:

namespace m;
interface X{}
namespace n;
interface Y{isA X;}

generates the following code for interface Y:

package n;

public interface Y extends X

which is lacking the import line for package m:

import m.*;

The problem only occurs when we have an interface that extends another interface. If a class implements an interface or extends another class, the import line is correctly generated.

PR #1482 (issue #1315) can be improved after this issue is solved (warning 42)


This comment has been minimized.

Copy link

commented Aug 29, 2019

The workaround for users is to add depend m.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.