Skip to content

name conflict between field and method #10

Open

Description

@jbfaden

Java allows a class field and a method to have the same name. I had the variable "format" and a method "format", and in Python this resulted in my field definition to be clobbered by the field definition without a compile error. This was a very confusing bug to figure out.

The converter needs to check for name conflicts like this, and at least throw an error.

Activity

  1. jbfaden commented on Oct 28, 2022

    @jbfaden
    OwnerAuthor

    This will also catch where method overloading is used and needs to be resolved.

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

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