Skip to content

Wrong output with preceding statements in function parameter initializer #1423

@GlassBricks

Description

@GlassBricks

Example:

let i = 1
function foo(x = i++){
    return x
}
foo()

This puts the preceding statements for i++ outside of the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions