Skip to content

安卓kotlin 的companion object 静态方法没有调用 #23

@ShiQiKuangSan

Description

@ShiQiKuangSan

Describe the bug
使用 kotlin 写的class 中有 companion object 好像调用不了

class testaaz : LuaExportType {
    fun print(str: String) {
        Log.d("testaaz", str)
    }

    companion object {
        fun printc(str: String) {
            Log.d("testaaz", str)
        }
    }
}
_luaContext.evalScript("testaaz:printc('你好')");

这个有什么方式解决吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions