problem accessing base class method #116

Closed
karsten001 opened this Issue Oct 24, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@karsten001

Hi,

I have following code in c#

public class master
{
    public static string read()
    {
        return "test";
    }
}


public class testClass : master 
{
    public String strData;
    public int intData;
    public static string read2()
    {
        return "test";
    }
}

and I have following code in lua:

luanet.load_assembly 'Prototype.Test'
a = luanet.import_type 'Prototype.Test.testClass'

Following lua line is working:
return a.read2()

This one is not:
return a.read()
I get the error: unknown member name read
Do I have to call the static method read() in another way?

Regards

Karsten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment