Skip to content

Type-check fails on valid statement (Vector multiplied by Number) #56

@FelixWolf

Description

@FelixWolf

Type-check warning:

TypeError: Type 'number' could not be converted into 'quaternion | vector'; none of the union options are compatible Luau(1000)

Test case:

local a = vector(1,2,3) * 2

Despite the warning, it will still compile and execute as expected in Second Life.

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