Skip to content

os.time expected input is wrong #2235

@Rathoz

Description

@Rathoz

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

This should not be warning per the documentation of os.time()
image

Actual Behaviour

image
is giving warning

Reproduction steps

local date = os.time{year=2024, month=12, day=13}

Additional Notes

No response

Log File

No response

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