Skip to content

Allow functions from an interface #426

@Zastai

Description

@Zastai

It is not an uncommon practice to use an interface as a container for public static methods.
However, adding @Function to a public static method in an interface results in a compilation failure:

[ERROR] Somehow this method got enclosed by something other than a class

This is a rather unhelpful message to being with: Which method are you talking about? Who is telling me this?

But as far as I can tell, PL/Java has no need to instantiate such an outer class at all, so there seems to be no real reason why it can't be an interface; that should not affect the ability to invoke a contained static method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions