Skip to content

cannot extend generic class  #1929

Open
@somebody1234

Description

@somebody1234

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Type Checking

Expected Behaviour

inheritance works, or error diagnostic

Actual Behaviour

inheritance doesnt work, no diagnostic

Reproduction steps

--- @class Foo<t>: { a: t; }
--- @class Bar: Foo<integer>
local x --- @type Bar
local what = x.a -- type is unknown

Additional Notes

seems like it just doesnt handle generic syntax in : here?

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsfeat/genericRelated to generic emulation feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions