Skip to content

How to type annotate keys with spaces? #3377

@ChillerDragon

Description

@ChillerDragon
---@class MyT
---@field "hello world" number
local t = {}

t["hello world"] = 2

print(t["hello world"])
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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