Skip to content

Improve overloadings check in generated code #370

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

Method ClassId.allMethods and its usage in codegen requires refactoring

Expected behavior

For now, to check functions overloadings and cast null arguments to their types in case we have overloadings with the same number of parameters, we filter all declared methods from class and all its ancestors. But actually, it is the wrong way because we count not only overloadings but overridings too. So, we should filter overloadings before.

Context

Migrated from Jira, issue 1458.

Metadata

Metadata

Labels

comp-codegenIssue is related to code generatorctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions