Skip to content

Can't generate proper function with return type #85

@hugree

Description

@hugree

I'm trying to expose AppLocalizeBehavior's localize method by introducing a custom component that I want to use on the GWT side.

I added a simple function

translate: function (language, resources, formats) {
        return this.__computeLocalize(language, resources, formats);
}

or even a simpler case with

testreturn: function () {
        return "something";
    }

However the problem is the generated code still uses void

public void translate(Object e, Object o, Object n) {
        getPolymerElement().translate(e, o, n);
    }

What am I missing here?

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