Skip to content

Luau: Compound __idiv assignment  #899

@ArvidSilverlock

Description

@ArvidSilverlock

A program such as this will not format as it seems integer division isn't supported by the parser.

local value = 3
value //= 2

The error for this specific program is as follows (running within visual studio code):

[error] error: could not format from stdin: failed to format from stdin: error parsing: error occurred while creating ast: unexpected token `value`. (starting from line 2, character 1 and ending on line 2, character 6)
additional information: leftover token

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions