gemoc / ale-lang

Action Language for EMF
Eclipse Public License 1.0
8 stars 6 forks source link

Cannot run inherited @main method #187

Open echebbi opened 4 years ago

echebbi commented 4 years ago

Bug description

Given a class Child extending a class Parent defined as follows:

open class Parent {

    @main
    def void main() {}

}

Given an XMI model containing a Child instance, the dialog triggered by Run As > ALE Application informs that no @main method is available for Child and the ALE interpreter is not run.

Expected behavior

The run delegate detects that Parent::main can be called on a Child instance.

Additional context