Skip to content

Methods on types intersected with number cannot be used #782

@ark120202

Description

@ark120202

Input:

type Vector = number & { normalize(): Vector };
(null! as Vector).normalize();

Current Result:

TSTL: Unsupported property on number: normalize

Expected Result:
No errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions