Skip to content

Cannot use generic type in fieldΒ #3043

@SLUCHABLUB

Description

@SLUCHABLUB

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

MacOS

What is the issue affecting?

Type Checking

Expected Behaviour

That no error is shown.

Actual Behaviour

You receive the error: Undefined type or alias `B`.

Reproduction steps

---@class A<B>
---@field b B

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