Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Reference parameters are treated as output parameters #36

Description

@mihe

Parameters with the UPARAM(ref) annotation currently gets treated as an output parameter, which results in some janky typings, like:

declare class Vector2D {
    normalize(tolerance?: number): { a: Vector2D };
}

It should instead perform the operation in-place and not return anything.

Some preliminary tests with simply excluding CPF_ReferenceParm from FTsuReflection::IsOutputParameter didn't seem to work. The actual invocation probably needs to not copy the value if it's a reference parameter or something.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions