Skip to content

[TSTL transformation] Default parameters with 'null' and 'undefined' get compiled #1422

Description

@Neloreck

Problem:

When assign default values for property parameters and assign 'null' or 'undefined' value, resulting code generate instructions that do not make sense.

Example:

source:
image

result:
image

What is expected:

Probably no code at all as result since it does assign + check, but logically it is invalid

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions