Skip to content

.length() gets applied to the wrong object #17

Description

@Naddiseo

Testcase:

class Klass {
    void method() {
        String foo = "asdf";
        dummy(foo.length());
    }
}

Generated output:


#!/usr/bin/env python
""" generated source for module test """
class Klass(object):
    """ generated source for class Klass """
    def method(self):
        """ generated source for method method """
        foo = "asdf"
        len(dummy(foo))

As you can see, the len() should be applied to foo not dummy()

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions